Changes between Version 50 and Version 51 of pyrunner


Ignore:
Timestamp:
01/09/25 13:42:49 (3 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyrunner

    v50 v51  
    116116Theoretically, for debugging 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 break at the first test. This makes this approach mostly useless.
    117117}}}
     118
     119
     120
     121== Error handling
     122PyRunner uses the stdin and stderr channels to communicate with python.
     123
     124If an IOException occurs on these channels, this error is forwarded to you.
     125
     126If a python call writes something to stderr, this is always interpreted as an error message. A PythonError will be thrown containing this message.
     127
     128If you just used {{{call()}}}, then the text that came back through stdin is forwarded to you are a result.
     129
     130If you called {{{test()}}} however, then the stdout stream is used to report the test results. If you write anything to the stdout stream (eg with print()) then this will corrupt the stdout stream, resulting in a parsing error.