Takeout: Testing - ramirezfranciscof/aiida-core GitHub Wiki

To run remotely, remember to do it like this:

nohup python -u your_code.py > your_directory/nohup.out &

Pytest Output

By default, py.test captures the result of standard out so that it can control how it prints it out. If it didn't do this, it would spew out a lot of text without the context of what test printed that text. However, if a test fails, it will include a section in the resulting report that shows what was printed to standard out in that particular test.

If you would like to see print statements as they are executed, you can pass the -s flag to py.test. However, note that this can sometimes be difficult to parse.

py.test tmp.py -s

Source