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.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.collectreport(report)[source]
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.

schrodinger.test.pytest.reporter.format_captured_exceptions(exceptions)[source]

Formats exceptions given as (type, value, traceback) into a string suitable to display as a test failure.

schrodinger.test.pytest.reporter.log_exceptions(item)[source]
schrodinger.test.pytest.reporter.runtest_makereport(item, call)[source]

Add the test owner to each report.