schrodinger.test.pytest.reporter module

Schrodinger-specific display of pytest output.

schrodinger.test.pytest.reporter.terminal_summary(terminalreporter)

Improve output of summary after tests. Needs to run before the default impementation.

schrodinger.test.pytest.reporter.print_killed_tests(terminalreporter)

Print messages about c++ killed tests.

schrodinger.test.pytest.reporter.get_core_dump_signal_codes()

Return codes for signal that may produce a core file

schrodinger.test.pytest.reporter.print_crashed_process(pid, returncode)

Given a pid for a crashed process, look for related crash files

schrodinger.test.pytest.reporter.monkeypatch_terminal_summary(terminalreporter)

Monkeypatch display of terminal summary. Intended to run first in a pytest_terminal_summary hook.

schrodinger.test.pytest.reporter.print_all_owners(terminalreporter)

Print all owners of all killed or failed tests.

schrodinger.test.pytest.reporter.print_owners(terminalreporter, owners)

Print the specified test owners

schrodinger.test.pytest.reporter.sessionfinish(session, exitstatus)

If there is uncollectable garbage, report about it and exit non-zero.

schrodinger.test.pytest.reporter.unconfigure(config)

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)
schrodinger.test.pytest.reporter.runtest_logreport(report)

The makereport hook doesn’t run for crashed tests, add owners here.

schrodinger.test.pytest.reporter.build_hook(report)

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)

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

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

Add the test owner to each report.