# pm.execution.skipRequest() doesn't update Skipped Test count

**URL:** <https://community.postman.com/t/pm-execution-skiprequest-doesnt-update-skipped-test-count/67771>\
**Category:** Help Hub\
**Tags:** newman-project, tests\
**Created:** [August 31, 2024, 4:17pm UTC](https://community.postman.com/t/pm-execution-skiprequest-doesnt-update-skipped-test-count/67771 "2024-08-31T16:17:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpjpjp](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jpjpjp](https://community.postman.com/u/jpjpjp)\
**Post date:** [August 31, 2024, 4:17pm UTC](https://community.postman.com/t/pm-execution-skiprequest-doesnt-update-skipped-test-count/67771/1 "2024-08-31T16:17:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 31, 2024, 4:43pm UTC](https://community.postman.com/t/pm-execution-skiprequest-doesnt-update-skipped-test-count/67771/2 "2024-08-31T16:43:35Z")

</div>

These are different things.

One is completely skipping a request, that could or could not have tests in it and the other is using the `pm.test.skip()` option to explicitly skip a test.

---

<div class="post-metadata">

**Author:** ![jpjpjp](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jpjpjp](https://community.postman.com/u/jpjpjp)\
**Post date:** [September 3, 2024, 7:34pm UTC](https://community.postman.com/t/pm-execution-skiprequest-doesnt-update-skipped-test-count/67771/3 "2024-09-03T19:34:44Z")

</div>

Thanks for the reply Danny. That makes sense.

I’d still like a way to check my output to see if there were any skipped Requests. Is there a way to detect that after a run?

Cheers,  
–jp

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [September 10, 2024, 1:01pm UTC](https://community.postman.com/t/pm-execution-skiprequest-doesnt-update-skipped-test-count/67771/4 "2024-09-10T13:01:06Z")

</div>

Closed on September 10, 2024, 1:01pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
