pulsar
pulsar copied to clipboard
ability to list all test functions
For a given tag
Would this describe the ability to list and specify specific test functions as per this example?:
For instance in a current project I run -m runtests -l
and get:
All test labels:
myapp.tasks
When actually what I'd hope to do is emulate the level of drill-down which -m unittest
provides so I could list the following (and individually run any of):
All test labels:
myapp.tasks
myapp.tasks.SetQuantityTest
myapp.tasks.SetQuantityTest.test_gets_actor_quantity
myapp.tasks.SetQuantityTest.test_sets_actor_quantity
Currently at the moment only the following work:
-m runtests myapp
-m runtests myapp.tasks
-m runtests myapp.tasks.test_gets_actor_quantity
But not:
-m runtests myapp.tasks.SetQuantityTest
-m runtests myapp.tasks.SetQuantityTest.test_gets_actor_quantity
which seems kinda odd, and I suppose requires that all my test methods need to have unique names even across multiple classes? Is this a general assumption for all test suites or just pulsar's assumption? I've not encountered it before though.