How to get the test execution result from new man

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

Hi Everyone,

How to get the test execution result after the newman command line run. Anyone has achieved this?

We wanted to revoke the build if the test fails.

Thanks
Team.

Hi @infotoudaya

If you want to display the results I would suggest the HTML Extra Reporter;

If you mean the exit code then (if you are in CMD) you could try using;

echo %errorlevel%

Here is an example with a Newman run that passes (exit code 0) and fails(exit code 1).