hany mhajna
hany mhajna

Reputation: 134

How do I make IntelliJ IDEA run all the tests including sub packages

If I click on a package and do control-shift-F10, it failed with this error:

Error running ScalaTests in 'tests': Not found suite class.

And when open test configuration i see the the "Test Package" is

src.main.scala.com.myproject.pro.integration.tests

And when i change it to be:

com.myproject.pro.integration.tests

it just run the tests that existing in the first level without running the sub packages tests.

my configuration:

enter image description here

Upvotes: 3

Views: 1338

Answers (1)

hany mhajna
hany mhajna

Reputation: 134

The solution is:

1- Mark the parent folder as "Test Sources Root" enter image description here

2- Click on your suite and click on control-shift-F10

3- Run the tests

Upvotes: 1

Related Questions