David E Jones wrote:
> 
> Why not just use different test-suite elements for this? Why have an
> hierarchy in this?
> 
> Actually... I'm not even sure what "this" is, ie what is the point of a
> group? Maybe we should discuss that first...

The service engine tests define several different test cases.  The
second test case does a data load.  Then each subsequent test modifies
the data state of the previous test.  They all have to run in
sequence, for them to pass.

This means that they are *not* separate test cases, but a single test
case.  A test case is supposed to be self-contained, not depending on
the state of anything else.  It's supposed to start from empty, do
whatever mutative changes it needs to, without any external
dependencies.  The service test cases did not follow this.

I've got a script that runs each defined test case separately; it
stops/starts ofbiz for each individual test case, and restores a
previous saved copy of the derby data folder between each test.

Reply via email to