not to hijack the thread been looking at using http://maxq.tigris.org/ but it can not revert the data. one thought was to have a test url that did setup and reset.
Scott Gray sent the following on 10/30/2008 11:01 PM: > Even if you gave each test it's own data, you would still need the > demo data to provide all of the supporting data needed to effectively > test the system, each test couldn't set the system up in it's > entirety. > > The database is supposed to be cleared before and after running the > tests, so using the demo data doesn't prevent people from using the > demo data for demos. > > The reason the tests are broken at the moment is not because demo data > was used/misused but because it wasn't understood that the entire test > suite should pass in a single sweep, if I understand correctly the > test being committed was tested as a standalone unit. Normally the > test would have failed while being developed, the problem spotted and > fixed. > > Regards > Scott > > 2008/10/31 Adam Heath <[EMAIL PROTECTED]>: >> Scott Gray wrote: >>> I'm talking about demo data not seed data, I don't see why the demo >>> data can't be used for testing? >> That is exactly the problem. Testing mutates things. If each test has >> it's very own set of data, then there will never be a clash with >> anything else. >> >> And, the demo data is useful for those wanting to see how various parts >> of ofbiz function, OOTB. >> >> Reusing them can only lead to headaches, which is why we have the full >> test suite containing so many failures. >> > >