Skip to content

Commit

Permalink
Merge pull request #1983 from actonlang/nothing-to-test
Browse files Browse the repository at this point in the history
If there is nothing to test, say so
  • Loading branch information
plajjan authored Nov 11, 2024
2 parents 023a3d7 + 59cc05c commit 7cc3137
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/src/testing.act
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,11 @@ class ProjectTestResults(object):

print("")
if complete:
if errors > 0 and failures > 0:
if self.num_tests() == 0:
print("Nothing to test")
print()
return 0
elif errors > 0 and failures > 0:
print(term.bold + term.red + "%d error and %d failure out of %d tests (%ss)" % (errors, failures, self.num_tests(), self.sw.elapsed().str_ms()) + term.normal)
print()
return 2
Expand Down

0 comments on commit 7cc3137

Please sign in to comment.