Open jordanwalsh23 opened 2 years ago
I believe this is because after the pre-request and test scripts are removed via Postman, the collection JSON still contains the following:
"event": [{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
},
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}],
I believe the exec
arrays are still being counted even though there is no executable javascript within these blocks.
If the event
section is removed, the counts appear as expected.
When pre-request and test scripts are removed from Postman, newman still counts these towards the summary totals in the CLI reporter.
newman -v
): v5.3.0Steps to reproduce the problem: