question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to Stop NEWMAN when any assertion fails

See original GitHub issue
  1. Newman Version (can be found via newman -v):
  2. OS details (type, version, and architecture):
  3. Are you using Newman as a library, or via the CLI?
  4. Did you encounter this recently, or has this bug always been there:
  5. Expected behaviour:
  6. Command / script used to run Newman:
  7. Sample collection, and auxilliary files (minus the sensitive details):
  8. Screenshots (if applicable):

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
michaelajrcommented, Jul 12, 2019

IMO there needs to be a newman verify command that can look at a summary report and exit with an error if there test run failures. We have newman run happening and we do not fail if there were test failures (need to do other things like dump a coverage report and stop the server) - so we need a way to programatically fail a pipeline after the test run exits. I suppose we could use the exit code of the run command. But that is hard to do in Maven if you want to bind to the verify goal. Anyway just a thought.

4reactions
mchippagcommented, May 14, 2018

Hi, I am trying to execute a Jenkins pipeline in which one stage is dedicated for newman run(using collection). I want to know if I can abort the build if my newman assertions are failed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to suppress/exclue a specific warning in newman - Help
Hi Guys, I have a query. In my collection run, i EXPECT a particular API to fail a few times (connection timed out...
Read more >
Is there any way to continue with tests in postman even if any ...
In a Postman GET request, I have used multiple assertions. However, if any assertion fails, Postman will stops its execution then and there ......
Read more >
postman/newman executor unable to fail the request even if ...
The issue loooks to still be there. The postman assertions are not recognized by bzt. The results still shows none of the transactions...
Read more >
Playwright Soft Assertions - ProgramsBuzz
1. Assertions with no failure · 2. Assertions with failure · 3. Soft assertion with failure · 4. Stop Execution on Soft Assertion...
Read more >
How to write Assertions in Postman with Chai Assertion Library?
I love to keep growing as the technological world grows. I feel there is no powerful tool than a computer to change the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found