A newman reporter for generating nice and clean report using Allure framework
- Learn more about Allure Report at https://allurereport.org
- 📚 Documentation – discover official documentation for Allure Report
- ❓ Questions and Support – get help from the team and community
- 📢 Official annoucements – be in touch with the latest updates
- 💬 General Discussion – engage in casual conversations, share insights and ideas with the community
The docs for Allure Newman are available at https://allurereport.org/docs/newman/.
Also, check out the examples at github.com/allure-examples.
- writes standard Allure results from Newman collections
- supports Allure metadata through request and test annotations
- works with Allure Report 2 and Allure Report 3
Install newman-reporter-allure using a package manager of your choice. For example:
npm install -D newman-reporter-allureInstall Allure Report separately when you want to render the generated allure-results:
- follow the Allure Report 2 installation guide to use the
allureCLI - or install Allure Report 3 with
npm install -D allureto usenpx allure
newman >= 3.5.0- Linux, macOS, and Windows wherever Newman supports Node.js
- this repository is validated in CI on Node.js 20 and 22
Enable the allure reporter via the CLI:
$ newman run "<Collection>" -e "<Environment>" -r allureYou may combine allure with other reporters:
$ newman run "<Collection>" -e "<Environment>" -r cli,allureWhen the test run completes, the result files will be generated in the ./allure-results directory.
You may select another location, or further customize the reporter's behavior with the configuration options.
Use Allure Report 2:
allure generate ./allure-results -o ./allure-report
allure open ./allure-reportOr use Allure Report 3:
npx allure generate ./allure-results
npx allure open ./allure-reportEnhance the report by utilizing the Allure API:
// @allure.label.epic:Authorization
// @allure.label.feature:BearerAuthorization
// @allure.label.story:ValidBearerToken
// @allure.label.tag:api
// @allure.label.owner:eroshenkoam
pm.test("Test Authentication", function () {
// ...
});More details about the API are available at https://allurereport.org/docs/newman-reference/.