summaryrefslogtreecommitdiff
path: root/testing/test_reports.py
AgeCommit message (Collapse)Author
2020-12-15tests: Migrate to pytester - incremental update (#8145)Anton
2020-10-19Drop support for EOL Python 3.5Hugo van Kemenade
2020-10-05py36+: com2annAnthony Sottile
2020-10-03py36+: remove rexport of Path and PurePathAnthony Sottile
2020-08-04Improve typing of reports' longrepr fieldRan Benita
2020-08-03testing: fix some docstring issuesRan Benita
In preparation for enforcing some docstring lints.
2020-06-05Enable check_untyped_defs mypy option for testing/ tooRan Benita
2020-05-27Fix py35 CI runFlorian Dahlitz
2020-05-26Apply suggestions from @bluetechFlorian Dahlitz
2020-05-25Prevent pytest from printing ConftestImportFailure tracebackFlorian Dahlitz
2020-04-04Fix tests: use explicit syspathinsert where tests might hang (#7008)Daniel Hahler
Use `testdir.syspathinsert()` with multiprocessing tests: - test_chained_exceptions_no_reprcrash - test_exception_handling_no_traceback This only works currently because `_importtestmodule` changes `sys.path` as a side-effect. It appears to be only required on Windows though - likely due to the multiprocessing method used there.
2020-01-16Use a dummy RemoteTraceback for test in Python 3.5 WindowsBruno Oliveira
Somehow in Python 3.5 on Windows this test fails with: File "c:\hostedtoolcache\windows\python\3.5.4\x64\Lib\multiprocessing\connection.py", line 302, in _recv_bytes overlapped=True) OSError: [WinError 6] The handle is invalid This only happens in this platform and Python version, decided to use a dummy traceback as originally done in #6412. (cherry picked from commit b9c136b809a33009ad514672666c515953957b33)
2020-01-07Use concurrent.futures for fidelity to the original reportBruno Oliveira
As requested in review
2020-01-06Fix serialization of 'None' reprcrashesBruno Oliveira
Tracebacks coming from remote processes crated by the multiprocess module will contain "RemoteTracebacks" which don't have a 'reprcrash' attribute Fix #5971
2019-10-30Introduce --report-log optionBruno Oliveira
Fix #4488
2019-10-26Replace a few outdated references to py.test with pytestRan Benita
2019-08-29Serialize/deserialize chained exceptionsBruno Oliveira
Fix #5786
2019-06-03pre-commit run pyupgrade --all-filesAnthony Sottile
2019-06-03pre-commit run fix-encoding-pragma --all-filesAnthony Sottile
2019-05-14Use fix-encoding-pragma pre-commit hookAnthony Sottile
2019-03-28Rename hooks: to/from_serializableBruno Oliveira
2019-03-26Fix assertion in pytest_report_unserializeBruno Oliveira
2019-03-25Improve coverage for _report_unserialization_failureBruno Oliveira
2019-03-25Improve coverage for to_json() with paths in reportsBruno Oliveira
2019-03-25Note that tests from xdist reference the correct xdist issuesBruno Oliveira
2019-03-25Add pytest_report_serialize and pytest_report_unserialize hooksBruno Oliveira
These hooks will be used by pytest-xdist and pytest-subtests to serialize and customize reports.
2019-03-25Add experimental _to_json and _from_json to TestReport and CollectReportBruno Oliveira
This methods were moved from xdist (ca03269). Our intention is to keep this code closer to the core, given that it might break easily due to refactorings. Having it in the core might also allow to improve the code by moving some responsibility to the "code" objects (ReprEntry, etc) which are often found in the reports. Finally pytest-xdist and pytest-subtests can use those functions instead of coding it themselves.