def pytest_runtest_makereport(item: pytest.Item, call): # _pytest.runner.CallInfo '''Hook to run after every test, before any other post-test hooks. See also: https://docs.pytest.org/en/latest/example/simple.html\ #making-test-result-information-available-in-fixtures ''' # Execute all other hooks to obtain the report object. outcome = yield # Handle failures. Must be done here and not in a fixture in order to # properly handle post-yield fixture teardown failures. sdk_diag.handle_test_report(item, outcome.get_result())
def pytest_runtest_makereport(item: pytest.Item, call): # _pytest.runner.CallInfo '''Hook to run after every test, before any other post-test hooks. See also: https://docs.pytest.org/en/latest/example/simple.html\ #making-test-result-information-available-in-fixtures ''' # Execute all other hooks to obtain the report object. outcome = yield # Handle failures. Must be done here and not in a fixture in order to # properly handle post-yield fixture teardown failures. if INTEGRATION_TEST_LOG_COLLECTION: sdk_diag.handle_test_report(item, outcome.get_result()) else: print("INTEGRATION_TEST_LOG_COLLECTION==False. Skipping log collection")
def pytest_runtest_makereport(item: pytest.Item, call): # _pytest.runner.CallInfo """Hook to run after every test, before any other post-test hooks. See also: https://docs.pytest.org/en/latest/example/simple.html\ #making-test-result-information-available-in-fixtures """ # Execute all other hooks to obtain the report object. outcome = yield # Handle failures. Must be done here and not in a fixture in order to # properly handle post-yield fixture teardown failures. if INTEGRATION_TEST_LOG_COLLECTION: sdk_diag.handle_test_report(item, outcome.get_result()) else: print("INTEGRATION_TEST_LOG_COLLECTION==False. Skipping log collection")
def _create_diagnostics_bundle(): sdk_diag.handle_test_report(item, outcome.get_result())