pythoscope
pythoscope copied to clipboard
add py.test support
generate py.test based unit tests
Will gladly accept pull requests for this. :)
can you show me path on how can I add py.test support for unit test generate
Currently there are two types of generated output supported: unittest
and nose
-style tests.
To add another you need to define two classes: a subclass of TestGenerator
, and a subclass of Template
. See UnittestTestGenerator and UnittestTemplate as examples.
Switching between templates happens in TestGenerator class initializer. Add your new case there and you will be able to use it from the command line -t
option.
thanks I will try to implement and push the changes
Hey that would be great!
Hey, do we have update on this?