I've written two test cases LoginTest
and SignUpTest
using JUnit and a Test Suite SessionUnitTestSuite
. Every time I want to build and run my app, I have to run the test suite (by selecting the Test Suite and then clicking in "Run") before and, if the test passes, run my app (by selecting the app module and then clicking in "Run").
Is there a way to automatically run the tests before running my app module and cancel the installation of my app if the tests fail?