# Skipping collection test but in the results it shows as skipped and failed

**URL:** <https://community.postman.com/t/skipping-collection-test-but-in-the-results-it-shows-as-skipped-and-failed/5438>\
**Category:** Help Hub\
**Tags:** tests, collections, skip\
**Created:** [May 15, 2019, 8:37am UTC](https://community.postman.com/t/skipping-collection-test-but-in-the-results-it-shows-as-skipped-and-failed/5438 "2019-05-15T08:37:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [May 15, 2019, 10:24am UTC](https://community.postman.com/t/skipping-collection-test-but-in-the-results-it-shows-as-skipped-and-failed/5438/4 "2019-05-15T10:24:41Z")

</div>

I don’t know a great deal about the context you work in and the reason for those checks, I can only offer a couple of different approaches that may or may not work 🙂

If you _know_ which checks cause that 429 status code, you could separate them out to different folders? Bring the tests down a level rather than having them all at the collection level? That _might_ add another level of control.

Or maybe changing the test to look for the `429` status code and skipping it that way but then you run the risk of skipping ones that you thought where going to part of the 2XX range.

```
if (pm.response.code === 429) {
    pm.test.skip("Too many requests", () => {
        pm.response.to.be.rateLimited
    });
}
else {
    pm.test(`Status code was ${pm.response.code}`, () => {
        pm.response.to.be.success
    });
}

```

There are lots of different things to consider but it’s tough to give a better honest without being in your context.

---

_[View the full topic](https://community.postman.com/t/skipping-collection-test-but-in-the-results-it-shows-as-skipped-and-failed/5438)._
