example-project-for-newman-reporter-testomatio

0.0.1 • Public • Published

Example project for newman-reporter-testomatio

This is example project for newman-reporter-testomatio package usage.

Usage

Running in this project

  1. Install modules:
    npm i

  2. Run tests

  • TESTOMATIO=<apiKey> npm run test
  • TESTOMATIO=<apiKey> npm run test:fail

Running in your project

  1. Install package
    npm i newman-reporter-testomatio

  2. Run collection and specify testomatio as reporter:
    TESTOMATIO=<apiKey> npx newman run <collection_name> -e <environment> -r testomatio \

-e (environment) is optional param; others are required

Examples:
TESTOMATIO=<apiKey> npx newman run collection.json -e env.json -r testomatio
TESTOMATIO=<apiKey> npx newman run collection_fail.json -e env.json -r testomatio

No need to pass TESTOMATIO_CREATE=1. This param is already set by default when using newman-reporter-testomatio.

Troubleshooting

If you got an error running your collection ("could not find testomatio reporter"), read next


newman and newman-reporter-testomatio should be installed in the same directory.

  • If you run your tests using globally installed newman (newman run ...):
    intall newman-reporter-testomatio globally too (npm i newman-reporter-testomatio -g).
  • If you use locally installed newman (within the project) (npx newman run ...):
    Follow default flow – just npm i

You can verify installed packages via npm list or npm list -g

Readme

Keywords

none

Package Sidebar

Install

npm i example-project-for-newman-reporter-testomatio

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

13.9 kB

Total Files

5

Last publish

Collaborators

  • davert