Open tarunmudgal opened 3 years ago
It looks like nose is loading the tests before loading the plugins... so you can monkey patch the code
def patch_add_flaky_report(self, stream):
"""
Patch flaky reporting to also write the output to a file.
"""
original_add_flaky_report(self, stream)
with open('flaky-report.txt', 'w') as output:
original_add_flaky_report(self, output)
original_add_flaky_report = FlakyPlugin._add_flaky_report
FlakyPlugin._add_flaky_report = patch_add_flaky_report
Maybe add a `--flaky-report-file=path/to/file
configuration
Currently there is no way to read ===Flaky Test Report=== details through any hook or fixture. There is a need to read this test report and write it to different loggers e.g. log files, error files