Changes between Version 36 and Version 37 of pyrunner
- Timestamp:
- 08/22/24 15:17:41 (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pyrunner
v36 v37 95 95 where YOURTESTCLASS is the name of the class containing your unityp tests. 96 96 97 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}}}. 97 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}}}. This only works for single classes because pip install removes all {{{__init__.py}}} files, breaking auto discovery of the tests. 98 98 99 99 To debug, you would 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. This makes this approach mostly useless.