Why do I see '0 tests run' when I try to execute a test?
At the end of your test run, the final report indicates how many tests were run, the PASS/FAIL status for each test, and how long it took to execute the tests. However, if all tests are skipped, there will be no final report. Instead there will be a message on the results page stating
Fatal error while running start: All tests skipped. None of the tests selected are compatible with this configuration. Go to the Results page and click the 'Skip reasons' checkbox for details.
There will also be a warning in the start log that will look similar to this:
WARNING: 17:14:43.941| All tests skipped. None of the tests selected are compatible with this configuration. WARNING: 17:14:43.942| Check config file settings or see skip.log for details.
You can see more detail of why tests were skipped by looking in the skip.log file or by
clicking on the
Skip reasons checkbox on the result page.
When the number of tests run is ‘0’, there is usually a configuration issue.
Another possibility is that if a specific module or test case name is specified and does not exist, that module or test case will not be run. If it is the only test module or test case specified, no tests are run.
[root@nta1000 ~]# cdrouter-cli -module nosuchmodule.tcl WARNING: No such module "nosuchmodule.tcl" (use -list to see modules) INFO(setup): 16:48:12.464| Starting cdrouter-cli Wed Mar 23 16:48:11 EDT 2016 . . . INFO(setup): 16:48:12.466| Adding test module "nosuchmodule.tcl" to execution list WARNING: 16:48:12.467| All tests skipped. None of the tests selected are compatible with this configuration. WARNING: 16:48:12.467| Check config file settings or use '-print-skipped' option for details.