def METHOD_NAME(pytest_test_inst):
    """Test running all tests in batch mode."""
    pytest_test_inst.setup()
    pytest_test_inst.run_tests()
    assert pytest_test_inst.report.status == report.Status.FAILED
    _check_attachements(
        pytest_test_inst.result.report["pytest_tests.py::TestWithAttachments"][
            "test_attachment"
        ]
    )
    _check_all_testcounts(pytest_test_inst.report.counter)