@@ -82,7 +82,7 @@ If you then run it with ``--lf``:
8282 =========================== test session starts ============================
8383 platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
8484 cachedir: $PYTHON_PREFIX/.pytest_cache
85- rootdir: $REGENDOC_TMPDIR
85+ rootdir: /home/sweet/project
8686 collected 50 items / 48 deselected / 2 selected
8787 run-last-failure: rerun previous 2 failures
8888
@@ -126,7 +126,7 @@ of ``FF`` and dots):
126126 =========================== test session starts ============================
127127 platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
128128 cachedir: $PYTHON_PREFIX/.pytest_cache
129- rootdir: $REGENDOC_TMPDIR
129+ rootdir: /home/sweet/project
130130 collected 50 items
131131 run-last-failure: rerun previous 2 failures first
132132
@@ -220,6 +220,8 @@ If you run this command for the first time, you can see the print statement:
220220 E assert 42 == 23
221221
222222 test_caching.py:17: AssertionError
223+ -------------------------- Captured stdout setup ---------------------------
224+ running expensive computation...
223225 1 failed in 0.12 seconds
224226
225227 If you run it a second time the value will be retrieved from
@@ -256,96 +258,16 @@ You can always peek at the content of the cache using the
256258 =========================== test session starts ============================
257259 platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y
258260 cachedir: $PYTHON_PREFIX/.pytest_cache
259- rootdir: $REGENDOC_TMPDIR
261+ rootdir: /home/sweet/project
260262 cachedir: $PYTHON_PREFIX/.pytest_cache
261263 ------------------------------- cache values -------------------------------
262264 cache/lastfailed contains:
263- {'a/test_db.py::test_a1': True,
264- 'a/test_db2.py::test_a2': True,
265- 'b/test_error.py::test_root': True,
266- 'failure_demo.py::TestCustomAssertMsg::test_custom_repr': True,
267- 'failure_demo.py::TestCustomAssertMsg::test_multiline': True,
268- 'failure_demo.py::TestCustomAssertMsg::test_single_line': True,
269- 'failure_demo.py::TestFailing::test_not': True,
270- 'failure_demo.py::TestFailing::test_simple': True,
271- 'failure_demo.py::TestFailing::test_simple_multiline': True,
272- 'failure_demo.py::TestMoreErrors::test_compare': True,
273- 'failure_demo.py::TestMoreErrors::test_complex_error': True,
274- 'failure_demo.py::TestMoreErrors::test_global_func': True,
275- 'failure_demo.py::TestMoreErrors::test_instance': True,
276- 'failure_demo.py::TestMoreErrors::test_startswith': True,
277- 'failure_demo.py::TestMoreErrors::test_startswith_nested': True,
278- 'failure_demo.py::TestMoreErrors::test_try_finally': True,
279- 'failure_demo.py::TestMoreErrors::test_z1_unpack_error': True,
280- 'failure_demo.py::TestMoreErrors::test_z2_type_error': True,
281- 'failure_demo.py::TestRaises::test_raise': True,
282- 'failure_demo.py::TestRaises::test_raises': True,
283- 'failure_demo.py::TestRaises::test_raises_doesnt': True,
284- 'failure_demo.py::TestRaises::test_reinterpret_fails_with_print_for_the_fun_of_it': True,
285- 'failure_demo.py::TestRaises::test_some_error': True,
286- 'failure_demo.py::TestRaises::test_tupleerror': True,
287- 'failure_demo.py::TestSpecialisedExplanations::test_eq_attrs': True,
288- 'failure_demo.py::TestSpecialisedExplanations::test_eq_dataclass': True,
289- 'failure_demo.py::TestSpecialisedExplanations::test_eq_dict': True,
290- 'failure_demo.py::TestSpecialisedExplanations::test_eq_list': True,
291- 'failure_demo.py::TestSpecialisedExplanations::test_eq_list_long': True,
292- 'failure_demo.py::TestSpecialisedExplanations::test_eq_long_text': True,
293- 'failure_demo.py::TestSpecialisedExplanations::test_eq_long_text_multiline': True,
294- 'failure_demo.py::TestSpecialisedExplanations::test_eq_longer_list': True,
295- 'failure_demo.py::TestSpecialisedExplanations::test_eq_multiline_text': True,
296- 'failure_demo.py::TestSpecialisedExplanations::test_eq_set': True,
297- 'failure_demo.py::TestSpecialisedExplanations::test_eq_similar_text': True,
298- 'failure_demo.py::TestSpecialisedExplanations::test_eq_text': True,
299- 'failure_demo.py::TestSpecialisedExplanations::test_in_list': True,
300- 'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_multiline': True,
301- 'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_single': True,
302- 'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_single_long': True,
303- 'failure_demo.py::TestSpecialisedExplanations::test_not_in_text_single_long_term': True,
304- 'failure_demo.py::test_attribute': True,
305- 'failure_demo.py::test_attribute_failure': True,
306- 'failure_demo.py::test_attribute_instance': True,
307- 'failure_demo.py::test_attribute_multiple': True,
308- 'failure_demo.py::test_dynamic_compile_shows_nicely': True,
309- 'failure_demo.py::test_generative[3-6]': True,
310- 'test_50.py::test_num[17]': True,
265+ {'test_50.py::test_num[17]': True,
311266 'test_50.py::test_num[25]': True,
312- 'test_anothersmtp.py::test_showhelo': True,
313267 'test_assert1.py::test_function': True,
314268 'test_assert2.py::test_set_comparison': True,
315- 'test_backends.py::test_db_initialized[d2]': True,
316269 'test_caching.py::test_function': True,
317- 'test_checkconfig.py::test_something': True,
318- 'test_class.py::TestClass::test_two': True,
319- 'test_compute.py::test_compute[4]': True,
320- 'test_example.py::test_error': True,
321- 'test_example.py::test_fail': True,
322- 'test_foocompare.py::test_compare': True,
323- 'test_module.py::test_call_fails': True,
324- 'test_module.py::test_ehlo': True,
325- 'test_module.py::test_ehlo[mail.python.org]': True,
326- 'test_module.py::test_ehlo[smtp.gmail.com]': True,
327- 'test_module.py::test_event_simple': True,
328- 'test_module.py::test_fail1': True,
329- 'test_module.py::test_fail2': True,
330- 'test_module.py::test_func2': True,
331- 'test_module.py::test_interface_complex': True,
332- 'test_module.py::test_interface_simple': True,
333- 'test_module.py::test_noop': True,
334- 'test_module.py::test_noop[mail.python.org]': True,
335- 'test_module.py::test_noop[smtp.gmail.com]': True,
336- 'test_module.py::test_setup_fails': True,
337- 'test_parametrize.py::TestClass::test_equals[1-2]': True,
338- 'test_sample.py::test_answer': True,
339- 'test_show_warnings.py::test_one': True,
340- 'test_simple.yml::hello': True,
341- 'test_smtpsimple.py::test_ehlo': True,
342- 'test_step.py::TestUserHandling::test_modification': True,
343- 'test_strings.py::test_valid_string[!]': True,
344- 'test_tmp_path.py::test_create_file': True,
345- 'test_tmpdir.py::test_create_file': True,
346- 'test_tmpdir.py::test_needsfiles': True,
347- 'test_unittest_db.py::MyTest::test_method1': True,
348- 'test_unittest_db.py::MyTest::test_method2': True}
270+ 'test_foocompare.py::test_compare': True}
349271 cache/nodeids contains:
350272 ['test_caching.py::test_function']
351273 cache/stepwise contains:
0 commit comments