You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2003/06/11 15:48:34 UTC

Test Guidelines

Hi Lenya developers,

at the moment, it is very difficult to write tests that
depend on a specific file system state in the installation
directory.

One solution would be to create a test publication that is
reset before the execution of each test.

We could use the default publication for this purpose:

for each test do {
   delete ${install.dir}/pubs/test
   copy ${src.dir}/pubs/default to ${install.dir}/pubs/test
   run test
}

Each test would be in another target that depends on the
"test publication reset" target. This would also allow to
run single tests.

What do you think?

Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org


RE: Test Guidelines

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
>>
One solution would be to create a test publication that is
reset before the execution of each test.
<<

+1


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org