|Eclipse Home||Wiki Home||Development|
Corona uses a set of unit test suites for its quality assurance. Each suite of unit tests can be performed independently or part of a larger Corona system test.
Corona's test suites are based upon JUnit v4.
Corona's development envrionment provides the Eclipse plug-in extension-point test.eclipse.corona.CoronaTestSuite. The Corona bundle test.eclipse.corona will perform all test suites that implement this extension-point.
Plug-ins that provide an extension for CoronaTestSuite must extend the abstract class org.eclipse.corona.test.AbstractTestSuite. This will allow each test plug-in to perform its set of tests. Test results are returned using the JUnit Result class.
It is recommended that each test plug-in be named after the plug-in it is testing, but replace the prefix org with test. For example, the plug-in org.eclipse.corona.repository would have a test plug-in named test.eclipse.corona.repository".
The package names for a test plug-in should be the same as those used by the plug-in being tested. This will allow test cases to be implemented against methods with default/package visibilty.
The test plug-in's Activator class should be renamed to ActivatorTest. This will avoid any confusion with the Activator from the original plug-in.
Corona tests are stored in the same CVS repository with Corona's plug-ins. All tests are stored under the folder tests.
Corona's test suites can be executed within the Eclipse IDE. Corona should be started either by Run or Debeug environments. Regardless, the execution environment should be started with the arugment -console.
Once the Corona test environment has been started, enter the OSGi command: start test.eclipse.corona.