infiniswiss-integration-tests-runner
v0.0.3
Published
Integration tests runner
Maintainers
Readme
###Integrations tests
#####Description
Integration tests for checklist tool based on postman collections
#####Install and run then project
- Install
npm install - Run in development
npm run start
####Project structure
integration-tests-runner
│ README.md
│
└───testing-data // postmant collection and environments which are listed in `integration-tests-config.json`
└───integration-tests-config.json // config file for test runner
└───tests-definitions // all possible collections for testing
│ checklist-integration-tests.postman_collection.json- Publish package
npm publish
####Usage
- This package is needs to be installed as a dependency in your project and then you can use
postmanto create a test collection and export it as well as the environement variables for it. - Then you need to write your config as json file similar to
integration-tests-config.jso
{
"reporters": "cli",
"environments": {
"production": "...path to postman environment variables exported for production",
"testing": "...path to postman environment variables exported for testing"
... as many environments as you have,
},
"postmanCollections": [
"...path to exported collection from postman you can run as many collections as you want they will run on the specified environment variables listed in the command line"
]
}- Run the tests
"node ./node_modules/integration-tests-runner/lib/main.js -config="./integration-tests-config.json" --environment="testing"
####Important before adding/updating tests Don't define authorization on folder and use inherit from parent cause it generates bugs. Define authorization on each endpoint as NTLM and manually set the user and password
