tests: support running tests with py.test
rename test files as test_*.py, this is how tests are collected by py.test
take into account that test runner might disable log level and patch sys.stdout already
-
Because pytest test runner improve productivity in development phase ( supports invoking pdb on failures, easier to read error output, selecting tests to run, profiling, coverage etc) and this is still compatible with our current
python setup.py test
"official" way of running tests.I'm not at all suggesting to switch to pytest as a test framework, but just to make this test suite also compatible with pytest runner for those who like it.
Note that I'm not 100% sure tests are all correct on pytest (
test_slapgrid
seem to have failures - but not when running individual tests - I suspect pytest just reveal some test isolation or race condition problem ) and that I'm still waiting for tests results on our test infrastructure to confirm it does not introduce problems./alsocc @kirr and @luke who I believe are pytest users
( edit grammar mistake )
-
No objects, pytest is nice, +1 to use it
-
+1
-
yes pytest is cool, let's merge this
-
merged
Toggle commit list
-
Please register or sign in to post a comment