I'm running a bunch of Scala tests in IntelliJ. One is failing. I can't seem to be able to run just that one failing test (ala Visual Studio) - surely there must be a way to do this in the IDE?
After first running press Rerun Failed Tests
on toolbar for execute all the tests that failed.
Also check this guide for more details.
If you want to rerun a failed test, I would suggest to first filter the test results to show only failed tests. Then you right click your test(s) you want to rerun and select Run {testMethodName}
or press Ctrl + Shift + F10.
An even more easy way is to click on the button right under the green rerun arrow (green arrow with red exclamation mark) to rerun all failed tests.
You can also run only one method by opening your test class, right click on your test method name, and also select Run {testMethodName}
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With