|
From: Christoph S. <c.s...@un...> - 2003-02-27 15:10:27
|
Egon Willighagen wrote: > RFC CDK #14 >=20 > Name: Junit tests run with CDKTests may not produce graphical output=20 > Proposed: 2003-02-27 >=20 > PROPOSAL >=20 > I propose that all tests run by the org.openscience.cdk.test.CDKTests J= Unit > test suite, may not produce graphical output. Those tests should be put= in > org.openscience.cdk.test.GraphicalCDKTests instead. >=20 > REASON >=20 > To be able to do automatic regression tests on CDK on machines that do = not > provide a X-server, e.g. www.sf.net, the JUnit tests run by CDKTests sh= ould > not give graphical feedback. >=20 For testing reasons, most of my JUnit tests have a main() method which=20 sets a boolean standAlone=3Dtrue; which is checked in the test methods. If the class is executed as an application and not by the JUnit library,=20 it may well provide some testing output. Is this a problem? I don't want to duplicate the code of the test classes just to get some=20 classes which produce graphical debug output. Of course, there might well be some tests where the graphical output=20 *itself* is tested. These should go into a special suite. Cheers, Chris --=20 Dr. Christoph Steinbeck (e-mail: c.s...@un...) Groupleader Junior Research Group for Applied Bioinformatics Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de) Z=FClpicher Str. 47, 50674 Cologne Tel: +49(0)221-470-7426 Fax: +49 (0) 221-470-5092 What is man but that lofty spirit - that sense of enterprise. ... Kirk, "I, Mudd," stardate 4513.3.. |