i have installed the pytest framework.
i am able to run the testcases using the following command.
py.test -q test_class.py
How to run the same test using eclipse?
To open the debugger, you need to open the “Debug” perspective. You can do this by selecting “Window → Open Perspective → Other…” from the main menu. In the popup window that appears, select “Debug” and click on the “OK” button.
From eclipse Window->Preferences --> pydev --> PyUnit --> Change the Test runner to "Py.test runner".
Right Click over the file. Run As --> Python Unit-Test
Or press Ctrl+F9:-
It will prompt you to select the test
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With