Jun 20, 2006, 9:15:15 AM6/20/06
Today, if TestNG is invoked and it doesn't find any tests to run, it marks the test run as a success (0/0/0).
Obviously, if you open the reports you could see that no test was executed but if you run TestNG automatically by Ant and rely on the failureProperty to perform some actions, that can lead to a problem.
As it's common to make mistakes like misspelling a group, people might get the false impression that all tests pass when in fact no test was executed. Therefore, I believe that such an "empty run" should be considered as a failure.
What does everybody think?