acroucher/FRUITPy

Build errors are not handled

Closed this issue · 0 comments

Following the "in 3 minutes" example on the wiki, if you don't copy out the Makefile:

$ python3 run.py 
make: *** No targets specified and no makefile found.  Stop.
Traceback (most recent call last):
  File "run.py", line 8, in <module>
    suite.summary()
  File ".../FRUIT.py", line 391, in summary
    if self.success:
AttributeError: 'test_suite' object has no attribute 'success'

Of course, not adding the Makefile is a bad idea, but the same thing happens if you there is some other failure when running make. It would be nicer if the status instead listed those tests as ERRORs (instead of FAILs).