pythoscope icon indicating copy to clipboard operation
pythoscope copied to clipboard

add py.test support

Open auvipy opened this issue 9 years ago • 6 comments

generate py.test based unit tests

auvipy avatar Nov 18 '15 09:11 auvipy

Will gladly accept pull requests for this. :)

mkwiatkowski avatar Nov 18 '15 10:11 mkwiatkowski

can you show me path on how can I add py.test support for unit test generate

auvipy avatar Nov 18 '15 10:11 auvipy

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.

mkwiatkowski avatar Nov 18 '15 11:11 mkwiatkowski

thanks I will try to implement and push the changes

auvipy avatar Nov 24 '15 12:11 auvipy

Hey that would be great!

edersonbadeca avatar May 16 '16 02:05 edersonbadeca

Hey, do we have update on this?

atlasoracle-dev avatar Nov 12 '16 11:11 atlasoracle-dev