schrodinger.test.pytest.reporter module¶
Schrodinger-specific display of pytest output.
- schrodinger.test.pytest.reporter.terminal_summary(terminalreporter)[source]¶
Improve output of summary after tests. Needs to run before the default impementation.
- schrodinger.test.pytest.reporter.print_killed_tests(terminalreporter)[source]¶
Print messages about c++ killed tests.
- schrodinger.test.pytest.reporter.get_core_dump_signal_codes()[source]¶
Return codes for signal that may produce a core file
- schrodinger.test.pytest.reporter.print_crashed_process(pid, returncode)[source]¶
Given a pid for a crashed process, look for related crash files
- schrodinger.test.pytest.reporter.monkeypatch_terminal_summary(terminalreporter)[source]¶
Monkeypatch display of terminal summary. Intended to run first in a pytest_terminal_summary hook.
- schrodinger.test.pytest.reporter.print_all_owners(terminalreporter)[source]¶
Print all owners of all killed or failed tests.
- schrodinger.test.pytest.reporter.sessionfinish(session, exitstatus)[source]¶
If there is uncollectable garbage, report about it and exit non-zero.
- schrodinger.test.pytest.reporter.unconfigure(config)[source]¶
At the end of the py.test process, report: * memory use * all processes belonging to current user (for user buildbot)
This is done as late as possible so that parallel py.tests from pytest-xdist won’t interfere.
- schrodinger.test.pytest.reporter.runtest_logreport(report)[source]¶
The makereport hook doesn’t run for crashed tests, add owners here.
- schrodinger.test.pytest.reporter.build_hook(report)[source]¶
If test import fails or if the test crashes, build a hook based on the path to the file.