Previous: TestNG |
Up: Testing the STK |
There are a small number of unit tests already available with this STK, and more are planned. These tests are currently limited to the fuge-hibernate-mapping sub-project, and can be found within that directory. Tests are disabled by default within the default (local) profile and within the production profile so that production databases are not accidentally modified with test data.
You should run the tests after re-running the Maven install command with the correct profile, thus ensuring that the database connection details are the right ones for the test setup.
To run the tests, simply run this command from the top-level trunk directory:
mvn -o -f fuge-hibernate-mapping/pom.xml test -Denv=val
All should pass except two (testSoftware2EquipmentLink and testSoftware2EquipmentLinkWithFlush), which are demonstrating a bug discovered within the auto-generated Hibernate and Spring code. Full details of this bug are available in the Andromda forums , and as soon as I have a fix, the unit tests should all pass.
Previous: TestNG |
Up: Testing the STK |