axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <>
Subject RE: Test question
Date Mon, 05 Nov 2001 16:06:36 GMT

Hi Russell!

These are part of the unit tests, and get run with "ant junit" or "ant
all-tests" or...

Unit tests test small, well defined pieces of code.  Functional tests test
"end-to-end" system behavior, which is why we have the whole
spawn-a-server-then-call-it pattern.  It so happens we use JUnit as a
framework for both kinds of tests.


> -----Original Message-----
> From: Russell Butek []
> Sent: Monday, November 05, 2001 10:46 AM
> To:
> Subject: Test question
> I'm adding the getMessage methods to JavaUtil and I thought I 
> ought to have
> a test for them.  Since JavaUtil is in the utils directory 
> and there is a
> test/utils directory for utils tests, I figured I could put 
> it here and
> call it from test.utils.PackageTests.  But it doesn't get run 
> with 'ant
> functional-tests'.
> So my question is:  what's the testing philosophy here?  Is 
> the stuff in
> test/utils (and presumably most of test/*/*.java) meant to be run at
> someone's convenience and not part of the functional tests?
> I think all the test should be part of the functional-tests, 
> but I don't
> know the philosophy here.  Could someone enlighten me?  I would have
> expected to see a line in test/functional/FunctionalTests like:
>         suite.addTestSuite(test.utils.PackageTests.class);
> Russell Butek

View raw message