Reputation: 15529
I can run:
run
run...
run/debug configuration
> + > junit > test kind = all in package
> search for tests = in whole project
But if I do the same as (2) with a scala test (+ > scala test > test kind...) the first test fails very strangely (it seems an object
is not instantiated) while the same test pass if I run it using (1) or (3)
Config:
Bonus question: how to run all tests (junit and scalatest)?
Upvotes: 14
Views: 1700
Reputation: 507
You should be able to right click on the root directory of the project and click Run "All Tests"
. This recursively searches for tests in your project, and will run the tests in each module.
Upvotes: 2