I don't think this should be an error. If you make a typo you will see no tests were executed. I don't see thr benefit of failing the build.
In any case, this would belong to the runner. D. On Oct 14, 2013 2:17 PM, "Shai Erera" <[email protected]> wrote: > Hi > > If you run something like "ant test -Dtestcase=TestFoo" where there's no > TestFoo.java, or "ant test -Dtestcase=TestBar -Dtests.method=testFoo" where > there's TestBar.java but no testFoo() method, the build currently passes as > SUCCESSFUL. Though, the report says "0 suits" or "1 suits, 0 tests". > > I wonder if it should be a build failure? The problem I have is that you > can e.g. make a very stupid typo (usually around plurals as in > testSomethingBadOnIOException vs testSomethingBadOnIOExceptions) and get a > false SUCCESSFUL notification. > > If we want to fix/change it, where does it belong - build scripts, > LuceneTestCase or randomizedrunner? > > Shai >
