On 2/15/07, Alexey Varlamov wrote:
This is also applicable to api vs injected tests, the worst case is security module which has all 4 types. I'd prefer this to be fixed.
Do we really need this option? Why not run the test in this way: modules/lang-management> java -cp bin/impl/:../../depends/jars/junit_3.8.2/junit.jar junit.textui.TestRunner org.apache.harmony.lang.management.OperatingSystemMXBeanImplTest -Stepan. E.g. via adding extra step to detect if the specified test really
belongs to a suite and skipping the run otherwise. Yet not sure what to do if no such test ever ;) -- Alexey 2007/2/15, Vladimir Ivanov <[EMAIL PROTECTED]>: > I forgot to add test run example: > >build.bat -Dbuild.module=lang-management > - Dtest.case=org.apache.harmony.lang.management.OperatingSystemMXBeanImplTest > test > <snip> > run-tests-api: > [mkdir] Created dir: C:\harmony.top\classlib\trunk\build\test_report > [junit] Running > org.apache.harmony.lang.management.OperatingSystemMXBeanImplTest > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > [junit] Test > org.apache.harmony.lang.management.OperatingSystemMXBeanImplTest > FAILED > > touch-failures-file: > > touch-errors-file: > > run-tests-impl: > [junit] Running > org.apache.harmony.lang.management.OperatingSystemMXBeanImplTest > [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.15 sec > > thanks, Vladimir > > On 2/15/07, Vladimir Ivanov <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > > > when I ran separated TestCase'es I met a small issue: in the case when > > we have 'api' and 'impl' tests, for example in the lang-management > > module, any test always failed in one run due to 'NoClassDefFound'. > > > > Is it OK to add some elements to classpath or should we change a run a > > little bit or is it expected behavior? > > > > thanks, Vladimir > > >
-- Stepan Mishura Intel Enterprise Solutions Software Division
