pytest-cpp
pytest-cpp copied to clipboard
Handle FileNotFoundError if no XML file
If a google test exits unexpectedly or using exit, the XML file will not be generated, this handles the FileNotFoundError exception and returns the output to the console
Thanks! Any chance of writing a test for this, to ensure it does not regress?
One idea might be to mock subprocess.check_output so it does nothing, which would then reach that code.
Closing this for now, glad to reopen if we can get a test for this. 👍