nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 397 forks source link

How to tag a generated test #1081

Open PiotrNestor opened 6 years ago

PiotrNestor commented 6 years ago

I'm using nose test generator. How to tag a specific generated test with a the specific tag: 'bug'

Then it should be possible for the generated tests to be correctly selected at run-time

Run only tests that have the 'bug' tag nosetests -a 'bug'

Run all tests that DO NOT have the 'bug' tag nosetests -a '!bug'