I have several test collections, which include requests with Pre-request scripts that may call pm.execution.skipRequest()
. This works just as I hoped, so thank you for this handy function introduced last year.
I was surprised though to realize that calling this does not increment the “Skiped Test” count in either the Runner or in Newman. Was this an intentional decision, or an oversight?
I don’t see the Skipped Test count increment when running Newman or the folder collection runner in Postman Version 11.9.2 for MacOS.
I would like an easy way (other than grepping for console.log output) to see if tests have been skipped. Incrementing the existing Skipped Test count seems like a useful way to do this. If there are circumstances where it DOESN’T make sense to increment the Skipped Test count, perhaps a parameter could be added so that the developer could choose the behavior that they want?
Thanks for your consideration!
–jp