-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement to run scalatest test with ScalaRunner
currently the scalatest launcher uses standard java vm runner to run or debug tests. It works fine with a java expression evaluator but with the Scala IDE 4.1.0 there is available the Scala Expression Evaluator which requires a Scala Debugger. This enhancement adds a new scala launcher. From now it is possible to choose appropriate launcher: - an old java one especially for java projects where tests are written with scalatest. Then debugging and evaluation can be done with a java evaluator - a new scala one for scala projects (can be used for java projects as well but is not documented). You can stop in breakpoint during a test execution and evaluate arbitrary expression. This PR must be taken with scala-ide PR #955 Fix #1002447
- Loading branch information
1 parent
a29ebef
commit f17d0ef
Showing
46 changed files
with
1,028 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStack.scalarunner.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="scala.scalatest"> | ||
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/> | ||
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME"/> | ||
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/scalatest/src/com/test/SingleSpec.scala"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="1"/> | ||
</listAttribute> | ||
<mapAttribute key="org.eclipse.debug.core.preferred_launchers"> | ||
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/> | ||
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/> | ||
</mapAttribute> | ||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.SingleSpec"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...atest.tests/test-workspace/scalatest/AStackshouldtastelikepeanutbutter.scalarunner.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="scala.scalatest"> | ||
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/> | ||
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME"> | ||
<setEntry value="A Stack should taste like peanut butter"/> | ||
</setAttribute> | ||
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/scalatest/src/com/test/SingleSpec.scala"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="1"/> | ||
</listAttribute> | ||
<mapAttribute key="org.eclipse.debug.core.preferred_launchers"> | ||
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/> | ||
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/> | ||
</mapAttribute> | ||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.SingleSpec"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...test.tests/test-workspace/scalatest/AStackwhenemptyshouldcomplainonpop.scalarunner.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="scala.scalatest"> | ||
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/> | ||
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME"> | ||
<setEntry value="A Stack when empty should complain on pop"/> | ||
</setAttribute> | ||
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="1"/> | ||
</listAttribute> | ||
<mapAttribute key="org.eclipse.debug.core.preferred_launchers"> | ||
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/> | ||
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/> | ||
</mapAttribute> | ||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.StackSpec2"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...e.sdt.scalatest.tests/test-workspace/scalatest/AStackwheneveritisempty.scalarunner.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="scala.scalatest"> | ||
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/> | ||
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME"> | ||
<setEntry value="A Stack whenever it is empty certainly ought to be empty"/> | ||
<setEntry value="A Stack whenever it is empty certainly ought to complain on peek"/> | ||
<setEntry value="A Stack whenever it is empty certainly ought to complain on pop"/> | ||
</setAttribute> | ||
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="1"/> | ||
</listAttribute> | ||
<mapAttribute key="org.eclipse.debug.core.preferred_launchers"> | ||
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/> | ||
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/> | ||
</mapAttribute> | ||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.TestingFreeSpec"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...kspace/scalatest/AStackwheneveritisemptycertainlyoughttocomplainonpeek.scalarunner.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="scala.scalatest"> | ||
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/> | ||
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME"> | ||
<setEntry value="A Stack whenever it is empty certainly ought to complain on peek"/> | ||
</setAttribute> | ||
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="1"/> | ||
</listAttribute> | ||
<mapAttribute key="org.eclipse.debug.core.preferred_launchers"> | ||
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/> | ||
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/> | ||
</mapAttribute> | ||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.TestingFreeSpec"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStackwhenfull.scalarunner.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<launchConfiguration type="scala.scalatest"> | ||
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/> | ||
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME"> | ||
<setEntry value="A Stack when full should be full"/> | ||
<setEntry value="A Stack when full should complain on push"/> | ||
</setAttribute> | ||
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> | ||
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/> | ||
</listAttribute> | ||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> | ||
<listEntry value="1"/> | ||
</listAttribute> | ||
<mapAttribute key="org.eclipse.debug.core.preferred_launchers"> | ||
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/> | ||
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/> | ||
</mapAttribute> | ||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.StackSpec2"/> | ||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/> | ||
</launchConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.