Changes between Version 31 and Version 32 of pyrunner
- Timestamp:
- 08/21/24 11:35:18 (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pyrunner
v31 v32 92 92 where YOURTESTCLASS is the name of the class containing your unityp tests. 93 93 94 If this glue code is there, or if you can add this glue code manually, you can use the normal procedure with {{{python -m unittest path.to.YOURTESTCLASS}}}. 94 If this glue code is there, or if you can add this glue code manually, you can use the normal procedure with {{{python -m unittest path.to.YOURTESTCLASS}}}. To debug, you need to **install** pytest ({{{sudo apt install python3-pytest}}}) after which you can do {{{pytest-3 --trace path/to/YOURTESTCLASS.py}}}. Unfortunately there seems a bug in pytest-3 and it does not debug at the first test. 95 96 95 97 96 98 If the class uses unitpy but the glue code is not there, you can use runTests directly, using {{{python -c "from unitpy.Runner import runTests; import path.to.YOURTESTCLASS; runTests(YOURTESTCLASS)" }}}. You can add {{{-m pdb}}} to debug this run.