yunojuno / django-juno-testrunner

A more useful (and slightly more glamorous) test runner for Django 1.6+ from the folks at YunoJuno
MIT License
7 stars 9 forks source link

Allow commenting out of tests in rerun file #20

Open hugorodgerbrown opened 8 years ago

hugorodgerbrown commented 8 years ago

Sometimes it would be really useful to be able to run a subset of the test failures by commenting out the ones you don't want to run. Could use the python # style.

myapp.tests.TestSuite.test_one
# myapp.tests.TestSuite.test_one
myapp.tests.TestSuite.test_one

This should probably also be related to #4

gergelypolonkai commented 8 years ago

As the runner itself doesn’t read this file but you have to use it with some shell magic (from README.rst: python manage.py test < $(cat test-rerun.txt)), there’s no way to implement this via the runner module itself. You may try this:

python manage.py test < $(grep -v '^#' test-rerun.txt)
stevejalim commented 8 years ago

Even if we add this as an extra line to the README, it'll help some users

gergelypolonkai commented 8 years ago

Yes, but as a new test run – even if the test count is reduced – will overwrite test-rerun.txt, the commented test cases will be lost.