assamtest

mocha-style tests for python
git clone https://git.ce9e.org/assamtest.git

commit
38ee7e677ca8d1b13997479e72ab152bef520555
parent
aec6da36fb2c88545fc2c4c3888e701d3f69bf46
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-02-09 08:05
give feedback if no tests are found

Diffstat

M assamtest/reporter.py 3 +++

1 files changed, 3 insertions, 0 deletions


diff --git a/assamtest/reporter.py b/assamtest/reporter.py

@@ -50,6 +50,9 @@ class SpecReporter(Reporter):
   50    50 
   51    51 		if self.stats['fail']:
   52    52 			return 1
   -1    53 		elif sum(self.stats.values()) == 0:
   -1    54 			print(colored('No tests found', 'YELLOW'))
   -1    55 			return 5
   53    56 
   54    57 	def enter_suite(self, name):
   55    58 		self._print(name)