Skip to content

Commit 59cc809

Browse files
committed
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
1 parent a29ebef commit 59cc809

File tree

45 files changed

+738
-267
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+738
-267
lines changed

org.scala-ide.sdt.scalatest.tests/META-INF/MANIFEST.MF

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.6
99
Require-Bundle: org.scala-lang.scala-library,
1010
org.eclipse.equinox.weaving.aspectj,
1111
org.junit,
12-
org.scala-ide.sdt.core
12+
org.scala-ide.sdt.core,
13+
org.scala-ide.sdt.debug
1314
Import-Package: org.scalaide.core.testsetup,
1415
org.aspectj.weaver.loadtime.definition
1516
Bundle-ClassPath: .,

org.scala-ide.sdt.scalatest.tests/src/scala/tools/eclipse/scalatest/launching/ScalaTestLaunchTest.scala

Lines changed: 142 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ class ScalaTestLaunchTest {
5151

5252
import ScalaTestProject._
5353

54-
private def launch(launchName: String) {
54+
private def launch(launchName: String, mode: String = ILaunchManager.RUN_MODE) {
5555
val launchConfig = DebugPlugin.getDefault.getLaunchManager.getLaunchConfiguration(file(launchName + ".launch"))
56-
launchConfig.launch(ILaunchManager.RUN_MODE, null)
56+
launchConfig.launch(mode, null)
5757
}
5858

5959
@Test
@@ -126,6 +126,146 @@ class ScalaTestLaunchTest {
126126
launch("com.test.TestingFunSuite-'test2'")
127127
}
128128

129+
@Test
130+
def testLaunchComTestPackageWithScalaRunner() {
131+
launch("com.test.scalarunner")
132+
}
133+
134+
@Test
135+
def testLaunchComTestPackageWithScalaDebugger() {
136+
launch("com.test.scalarunner", ILaunchManager.DEBUG_MODE)
137+
}
138+
139+
@Test
140+
def testLaunchSingleSpecFileWithScalaRunner() {
141+
launch("SingleSpec.scala.scalarunner")
142+
}
143+
144+
@Test
145+
def testLaunchSingleSpecFileWithScalaDebugger() {
146+
launch("SingleSpec.scala.scalarunner", ILaunchManager.DEBUG_MODE)
147+
}
148+
149+
@Test
150+
def testLaunchMultiSpecFileWithScalaRunner() {
151+
launch("MultiSpec.scala.scalarunner")
152+
}
153+
154+
@Test
155+
def testLaunchMultiSpecFileWithScalaDebugger() {
156+
launch("MultiSpec.scala.scalarunner", ILaunchManager.DEBUG_MODE)
157+
}
158+
159+
@Test
160+
def testLaunchSingleSpecWithScalaRunner() {
161+
launch("SingleSpec.scalarunner")
162+
}
163+
164+
@Test
165+
def testLaunchSingleSpecWithScalaDebugger() {
166+
launch("SingleSpec.scalarunner", ILaunchManager.DEBUG_MODE)
167+
}
168+
169+
@Test
170+
def testLaunchStackSpec2WithScalaRunner() {
171+
launch("StackSpec2.scalarunner")
172+
}
173+
174+
@Test
175+
def testLaunchStackSpec2WithScalaDebugger() {
176+
launch("StackSpec2.scalarunner", ILaunchManager.DEBUG_MODE)
177+
}
178+
179+
@Test
180+
def testLaunchTestingFreeSpecWithScalaRunner() {
181+
launch("TestingFreeSpec.scalarunner")
182+
}
183+
184+
@Test
185+
def testLaunchTestingFreeSpecWithScalaDebugger() {
186+
launch("TestingFreeSpec.scalarunner", ILaunchManager.DEBUG_MODE)
187+
}
188+
189+
@Test
190+
def testLaunchTestingFunSuiteWithScalaRunner() {
191+
launch("TestingFunSuite.scalarunner")
192+
}
193+
194+
@Test
195+
def testLaunchTestingFunSuiteWithScalaDebugger() {
196+
launch("TestingFunSuite.scalarunner", ILaunchManager.DEBUG_MODE)
197+
}
198+
199+
@Test
200+
def testLaunchConfigAStackshouldtastelikepeanutbutterWithScalaRunner() {
201+
launch("AStackshouldtastelikepeanutbutter.scalarunner")
202+
}
203+
204+
@Test
205+
def testLaunchConfigAStackshouldtastelikepeanutbutterWithScalaDebugger() {
206+
launch("AStackshouldtastelikepeanutbutter.scalarunner", ILaunchManager.DEBUG_MODE)
207+
}
208+
209+
@Test
210+
def testLaunchConfigAStackwhenemptyshouldcomplainonpopWithScalaRunner() {
211+
launch("AStackwhenemptyshouldcomplainonpop.scalarunner")
212+
}
213+
214+
@Test
215+
def testLaunchConfigAStackwhenemptyshouldcomplainonpopWithScalaDebugger() {
216+
launch("AStackwhenemptyshouldcomplainonpop.scalarunner", ILaunchManager.DEBUG_MODE)
217+
}
218+
219+
@Test
220+
def testLaunchConfigAStackwhenfullWithScalaRunner() {
221+
launch("AStackwhenfull.scalarunner")
222+
}
223+
224+
@Test
225+
def testLaunchConfigAStackwhenfullWithScalaDebugger() {
226+
launch("AStackwhenfull.scalarunner", ILaunchManager.DEBUG_MODE)
227+
}
228+
229+
@Test
230+
def testLaunchConfigAStackwheneveritisemptycertainlyoughttocomplainonpeekWithScalaRunner() {
231+
launch("AStackwheneveritisemptycertainlyoughttocomplainonpeek.scalarunner")
232+
}
233+
234+
@Test
235+
def testLaunchConfigAStackwheneveritisemptycertainlyoughttocomplainonpeekWithScalaDebugger() {
236+
launch("AStackwheneveritisemptycertainlyoughttocomplainonpeek.scalarunner", ILaunchManager.DEBUG_MODE)
237+
}
238+
239+
@Test
240+
def testLaunchConfigAStackwheneveritisemptyWithScalaRunner() {
241+
launch("AStackwheneveritisempty.scalarunner")
242+
}
243+
244+
@Test
245+
def testLaunchConfigAStackwheneveritisemptyWithScalaDebugger() {
246+
launch("AStackwheneveritisempty.scalarunner", ILaunchManager.DEBUG_MODE)
247+
}
248+
249+
@Test
250+
def testLaunchConfigAStackWithScalaRunner() {
251+
launch("AStack.scalarunner")
252+
}
253+
254+
@Test
255+
def testLaunchConfigAStackWithScalaDebugger() {
256+
launch("AStack.scalarunner", ILaunchManager.DEBUG_MODE)
257+
}
258+
259+
@Test
260+
def `testLaunchConfigcom.test.TestingFunSuite-'test2'WithScalaRunner`() {
261+
launch("com.test.TestingFunSuite-'test2'.scalarunner")
262+
}
263+
264+
@Test
265+
def `testLaunchConfigcom.test.TestingFunSuite-'test2'WithScalaDebugger`() {
266+
launch("com.test.TestingFunSuite-'test2'.scalarunner", ILaunchManager.DEBUG_MODE)
267+
}
268+
129269
@Ignore
130270
def testLaunchExampleSpec1File() {
131271
launch("ExampleSpec1.scala")

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStack.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1010
<listEntry value="1"/>
1111
</listAttribute>
12+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
13+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
14+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
15+
</mapAttribute>
1216
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.SingleSpec"/>
1317
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1418
</launchConfiguration>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="scala.scalatest">
3+
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/>
4+
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME"/>
5+
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/>
6+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
7+
<listEntry value="/scalatest/src/com/test/SingleSpec.scala"/>
8+
</listAttribute>
9+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
10+
<listEntry value="1"/>
11+
</listAttribute>
12+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
13+
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/>
14+
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/>
15+
</mapAttribute>
16+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.SingleSpec"/>
17+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
18+
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStackshouldtastelikepeanutbutter.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1212
<listEntry value="1"/>
1313
</listAttribute>
14+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
15+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
16+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
17+
</mapAttribute>
1418
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.SingleSpec"/>
1519
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1620
</launchConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="scala.scalatest">
3+
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/>
4+
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME">
5+
<setEntry value="A Stack should taste like peanut butter"/>
6+
</setAttribute>
7+
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/>
8+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
9+
<listEntry value="/scalatest/src/com/test/SingleSpec.scala"/>
10+
</listAttribute>
11+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
12+
<listEntry value="1"/>
13+
</listAttribute>
14+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
15+
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/>
16+
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/>
17+
</mapAttribute>
18+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.SingleSpec"/>
19+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
20+
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStackwhenemptyshouldcomplainonpop.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1212
<listEntry value="1"/>
1313
</listAttribute>
14+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
15+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
16+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
17+
</mapAttribute>
1418
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.StackSpec2"/>
1519
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1620
</launchConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="scala.scalatest">
3+
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/>
4+
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME">
5+
<setEntry value="A Stack when empty should complain on pop"/>
6+
</setAttribute>
7+
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/>
8+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
9+
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/>
10+
</listAttribute>
11+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
12+
<listEntry value="1"/>
13+
</listAttribute>
14+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
15+
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/>
16+
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/>
17+
</mapAttribute>
18+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.StackSpec2"/>
19+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
20+
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStackwheneveritisempty.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1414
<listEntry value="1"/>
1515
</listAttribute>
16+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
17+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
18+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
19+
</mapAttribute>
1620
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.TestingFreeSpec"/>
1721
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1822
</launchConfiguration>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="scala.scalatest">
3+
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/>
4+
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME">
5+
<setEntry value="A Stack whenever it is empty certainly ought to be empty"/>
6+
<setEntry value="A Stack whenever it is empty certainly ought to complain on peek"/>
7+
<setEntry value="A Stack whenever it is empty certainly ought to complain on pop"/>
8+
</setAttribute>
9+
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/>
10+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
11+
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/>
12+
</listAttribute>
13+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
14+
<listEntry value="1"/>
15+
</listAttribute>
16+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
17+
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/>
18+
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/>
19+
</mapAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.TestingFreeSpec"/>
21+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
22+
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStackwheneveritisemptycertainlyoughttocomplainonpeek.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1212
<listEntry value="1"/>
1313
</listAttribute>
14+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
15+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
16+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
17+
</mapAttribute>
1418
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.TestingFreeSpec"/>
1519
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1620
</launchConfiguration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="scala.scalatest">
3+
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/>
4+
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME">
5+
<setEntry value="A Stack whenever it is empty certainly ought to complain on peek"/>
6+
</setAttribute>
7+
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/>
8+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
9+
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/>
10+
</listAttribute>
11+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
12+
<listEntry value="1"/>
13+
</listAttribute>
14+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
15+
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/>
16+
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/>
17+
</mapAttribute>
18+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.TestingFreeSpec"/>
19+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
20+
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/AStackwhenfull.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1313
<listEntry value="1"/>
1414
</listAttribute>
15+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
16+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
17+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
18+
</mapAttribute>
1519
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.StackSpec2"/>
1620
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1721
</launchConfiguration>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="scala.scalatest">
3+
<stringAttribute key="SCALATEST_LAUNCH_INCLUDE_NESTED" value="false"/>
4+
<setAttribute key="SCALATEST_LAUNCH_TESTS_NAME">
5+
<setEntry value="A Stack when full should be full"/>
6+
<setEntry value="A Stack when full should complain on push"/>
7+
</setAttribute>
8+
<stringAttribute key="SCALATEST_LAUNCH_TYPE" value="SUITE"/>
9+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
10+
<listEntry value="/scalatest/src/com/test/MultiSpec.scala"/>
11+
</listAttribute>
12+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
13+
<listEntry value="1"/>
14+
</listAttribute>
15+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
16+
<mapEntry key="[run]" value="scala.scalatest.scalarunner"/>
17+
<mapEntry key="[debug]" value="scala.scalatest.scalarunner"/>
18+
</mapAttribute>
19+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.StackSpec2"/>
20+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
21+
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/ExampleSpec1.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1010
<listEntry value="1"/>
1111
</listAttribute>
12+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
13+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
14+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
15+
</mapAttribute>
1216
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="com.test.ExampleSpec1"/>
1317
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1418
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/ExampleSpec1.scala.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1010
<listEntry value="4"/>
1111
</listAttribute>
12+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
13+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
14+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
15+
</mapAttribute>
1216
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="/scalatest/src/com/test/ExampleSpec1.scala"/>
1317
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1418
</launchConfiguration>

org.scala-ide.sdt.scalatest.tests/test-workspace/scalatest/MultiSpec.scala.launch

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
1010
<listEntry value="4"/>
1111
</listAttribute>
12+
<mapAttribute key="org.eclipse.debug.core.preferred_launchers">
13+
<mapEntry key="[run]" value="scala.scalatest.javarunner"/>
14+
<mapEntry key="[debug]" value="scala.scalatest.javarunner"/>
15+
</mapAttribute>
1216
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="/scalatest/src/com/test/MultiSpec.scala"/>
1317
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="scalatest"/>
1418
</launchConfiguration>

0 commit comments

Comments
 (0)