Bugzilla – Bug 7046
Add test suite infrastructure
Last modified: 2010-07-01 15:46:51
You need to
before you can comment on or make changes to this bug.
Based on work in Bug 7045, begin a test suite infrastructure that allows the
test writer to instantiate entire spring contexts (and databases etc.) for an
integrated workspace-service situation (as opposed to small unit tests).
Instantiation and teardown should be possible "at will" and should be
"idempotent" so they can be run over and over. This is not about adding a lot
of tests themselves, but the infrastructure (which will be possible when 7045
First attempt at this is merged to master for Nimbus 2.5, see this group of
See the developer README:
In the future, we are thinking of making this work from a template
programatically. You could take a "prefabricated" layout of
etc/nimbus/worksapce-service on the filesystem, load it into Spring but only
conditionally, change what configurations need to change for a particular
test/suite *in code*, and only *then* instantiate the whole Spring context and
run those tests.
That will take some effort: we are accepting this test suite style for now (see
README). It works and is an enormous improvement over the previous unit-test
Thanks to Paulo Ricardo Motta Gomes, this test suite now is more reusable with
multiple runs after his integration with the Spring @DirtiesContext feature.