harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject where to put tests?
Date Thu, 22 Dec 2005 12:18:02 GMT
Does anyone have an opinion about where JUnit tests should be stored
under enhanced/classlib/trunk/ ?  These will be new tests for bug fixes etc.

The current layout looks like this, with a couple of options marked:

    depends/  <- 3rd-party stuff + some resources
    doc/      <- doxygen output
            src/ <- java code for archive component
        linux.IA32/ <- linux native code
        win.IA32/   <- windows native code

I don't have a strong feeling either way.

<<option-1>> says put the unit tests into a folder alongside the
implementation of each component of the class library (archive, math,
etc.)  That way the tests live with the implementation, and there is a
good incentive for the two to be maintained simultaneously.  It does,
however, make the packaging a bit more interesting because the tests
have to be separated -- this is not a big deal though.

<<option-2>> says put the tests into a parallel hierarchy at the same
level as the java and native code, e.g.
.../trunk/java-tests/archive/src/ and so on.  This makes the packaging
of the tests simpler since they are out of the way and allows us to
treat them as separate components.

FWIW:  I see that the HARMONY-16 contribution has the equivalent of



Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

View raw message