Clearer warning when not all tests are ran#459
Conversation
This works by capturing stderr from tests and checking to see if each line contains the string "WARNING:test:". If a line contains this string it is saved for later and re-printed once all tests have been run.
|
I see this is working, but it raises some questions for me around testing in general. This made me realize that i've been almost always using Currently, Question: have you been running the full testall suite this whole time, and it's been working? I'm been relying on CI mostly for multi version testing. Wondering if there's a way to pull this out into something more global so both make test and make testone work with it. Alternatively maybe it's time to finally give a better look at #415 |
|
Whenever I run the test suite locally I use In terms of #415, I think moving to a modern, supported testing framework wouldn't be a bad thing, however I do have a couple minor concerns.
Overall, I think it's do-able |
|
One year re-look: I think this is fine as-is. I'm going to simply add a commit after merge to move the test.py warnings logs to happen after the test run is complete, so it's apparent when running |
This PR fixes #458.
It works by capturing and reading each line of each test runner's
stderrin real time. If the line contains a warning it is saved to be re-printed later. Once all of the tests have finished, the warnings are printed tostdoutalong with the version of Python that raised the warning.