Custom Test Suites
Custom Test Suites is a feature in CubicTest that lets you launch CubicTest tests from Java and JUnit. You can launch specific test or all tests in a direcory and provide set up and tear down logic for the tests.
Usages:
- Required for launching tests from the command line with maven 2 and for continuous Integration.
- Setup logic is required for initializing the system before running a test and tear down logic for cleaning up the system afterwards (or asserting system state after test).
- Deciding which tests to run based on some flow control logic.
How to create and run a Custom Test Suite
A sample Custom Test Suite is created when you create a new CubicTest Project.
You can create additional test suites, either by copying the sample class or creating a new JUnit test class. The test class must reside in the src/test/java folder of the CubicTest Project.
To run it, right click and select Run As --> JUnit Test
It can also be run from maven by typing mvn test from the command line.
