geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <>
Subject Re: [PATCH] JUnit test for org.apache.geronimo.cache.SimpleInstanceCache
Date Tue, 12 Aug 2003 06:37:48 GMT
This one time, at band camp, Daniel F. Savarese said:

DFS>In message <Pine.LNX.4.44.0308112238170.1568-100000@pclnxbsnyder.digitalglobe.c
DFS>om>, Bruce Snyder writes:
DFS>>I'm wondering if there's a need for two kinds of tests - unit and
DFS>>spec. Of course, these two can be achieved in the same * files
DFS>>and separated simply by a comment line.
DFS>The first thing that occurred to me when I started reading the testing
DFS>thread is that we're talking about at least two, if not more, different
DFS>kinds of testing here.  The immediate need is straight up vanilla unit
DFS>testing and it should be kept separate from specification compliance
DFS>testing.  It's easy enough to keep the two separate by maintaining
DFS>the tests in distinct directory trees.  Ultimately, some sepcification
DFS>tests will alse be more basic unit tests, but they should be kept
DFS>with the other spec-related tests.  There will be plenty of classes
DFS>and methods that have nothing to do with the specification and all
DFS>of those will require testing.

I absolutely believe that we need both vanilla unit tests as well as spec
compliance tests. But these two test types should reside in completely
different files. So I think that there are at least two problems to solve:

1) We need to decide on how to separate the two test types using the
package structure.

The vanilla unit tests will reside in: 


I think that a completely separate directory structure is needed for
the spec compliance tests. I propose that we create another directory
as follows:


The spec compliance tests are wholly separate from the vanilla tests and the
two should not be mixed. 

2) Another issue is how to label the spec compliance tests in order to
parse them later for reporting, etc.

For this issue, not only should each spec compliance test be fully
documented via Javadoc, but we need to devise some meta tags for labeling
each test case for doclet parsing. I suggest that we use the following:

    chapter-name="Transaction Management"
    chapter-section-name="Transactional JDBC Technology Support"

The above example may not be directly applicable to a given test. It's
simply a chapter I chose at random.

Feedback? Better ideas? 

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

View raw message