Run As -> JUnit test not available for certain files, due to package name
I am not able to run Unit-tests dependent on the package name they reside in. So only the option Run As -> Run on Server is available.
Tests are in a package named com.a.b, they test classes that reside in com.a.c. So there is no package called com.a.b in the src/main folder.
When I move the test-file to the com.a package, I am able to run it via Scala IDE.
Happens on all tests that are in these packages in my current project. I can run other tests, which reside in other packages. I am running Scala JUnit 4 tests with specs.
Tests are defined like that:
Scala IDE for Eclipse 3.0.0.v-2_10-201303191408-1e64c72
on eclipse
Version: Juno Service Release 2
Build id: 20130225-0426
Tests are in a package named com.a.b, they test classes that reside in com.a.c. So there is no package called com.a.b in the src/main folder.
When I move the test-file to the com.a package, I am able to run it via Scala IDE.
Happens on all tests that are in these packages in my current project. I can run other tests, which reside in other packages. I am running Scala JUnit 4 tests with specs.
Tests are defined like that:
class XYTest extends JUnit4(XYSpecs)
object XYRunner extends ConsoleRunner(XYSpecs)
object XYSpecs extends Specification {
Scala IDE for Eclipse 3.0.0.v-2_10-201303191408-1e64c72
on eclipse
Version: Juno Service Release 2
Build id: 20130225-0426
Leave a comment
on 2014-02-04 02:23 *
By Iulian Dragos
Does the folder structure match the package name of your test classes?
on 2014-02-04 02:48 *
By huitseeker
Version changed from 3.0.0-210 to 3.0.2-210
Status changed from New to Need Info