Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JtestR 0.3
-
Fix Version/s: JtestR 0.3.1
-
Component/s: Test running
-
Labels:None
Description
When no tests are found by for some reason (wrong src dir for tests specified, user has forgotten to let the class extend TestCase, etc) jtestr run is very quiet which can be confusing for new users:
test:
[jtestr] [debug] finding tests
[jtestr] [debug] loading helpers
[jtestr] [debug] loading factories
BUILD SUCCESSFUL
It would be helpful with a line that warns that no tests have been found, or at least "0 tests, 0 errors, 0 failed".
Here is a first attempt at fixing this, I've basically just added an array that keeps track of results. Testrun methods are now expected to return a resultset that responds to aggregate_results.
I haven't added any new tests for this yet unfortunately.