Hello
I am using Newman with junit reporter.
I am doing the following request
newman run collection_file_name -e environment_file_name --bail --reporters cli,junit
This generates a Junit XML file with the error.
Later a Jenkins pipeline reads these XML files.
However depending on the error, sometimes the XML file is “almost” empty.
If the error is in Tests section of the request and an assertion fails, the XML file has a content
However, if the error is in pre-request script, the XML file does not contain information about the error:
What can I do to have information about the error in the XML file also in the latter case?
Thanks in advance