postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.88k stars 1.17k forks source link

Command line arg to exclude folders #2465

Open dcmeglio opened 4 years ago

dcmeglio commented 4 years ago
  1. Newman Version (can be found via newman -v): 5.1.0
  2. OS details (type, version, and architecture): Mac OS X 19.3.0
  3. Are you using Newman as a library, or via the CLI? CLI

Really more of a suggestion than an issue. It would be nice if newman could have a --exclude-folder that is the OPPOSITE of --folder

postman.setNextRequest can be used to simulate this, however it requires that tests be in a very particular order. If someone reorders tests they might not realize that that there are such statements in a pre-request script and now we skip the wrong tests.

It would be nice if from newman we could exclude particular folders so that if there are conditional tests, we can simply put them in those folders and alter command line args as needed to include/exclude.

adityaofficial10 commented 3 years ago

@vvs11 Are we looking forward to this request? If yes, I can work on this as this is similar to another feature request related to options.

DannyDainton commented 3 years ago

Hey @adityaofficial10

The best person to tag is @vvs11 🏆

adityaofficial10 commented 3 years ago

Hey @adityaofficial10

The best person to tag is @vvs11 🏆

Sure, thanks for guidance.

daniavander commented 6 months ago

when can we start to use it?