Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Mandatory Test Failure More Prominent #34

Open
shawnbrown opened this issue Dec 6, 2016 · 0 comments
Open

Make Mandatory Test Failure More Prominent #34

shawnbrown opened this issue Dec 6, 2016 · 0 comments

Comments

@shawnbrown
Copy link
Owner

shawnbrown commented Dec 6, 2016

Currently, when a mandatory test fails, the test runner exists with the following:

$ python -m datatest 
.......F
==========================================================
FAIL: <test name here>
<traceback here>
datatest.error.DataError: mandatory test failed, stopping 
early: data does not satisfy object requirement:
 Invalid('Some Invalid Code')
----------------------------------------------------------
Ran 8 tests in 1.764s

FAILED (failures=1)

The summary at the end should, more prominently, indicate that not all the tests were run:

$ python -m datatest 
.......F
==========================================================
FAIL: test_<test name here>
<traceback here>
datatest.error.DataError: mandatory test: data does not 
satisfy object requirement:
 Invalid('Some Invalid Code')
----------------------------------------------------------
Ran 8 tests in 1.764s

MANDATORY TEST FAILED, STOPPING EARLY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant