Sign inSign up

verosteam/node-e2e-testing

By verosteam

Updated over 5 years ago

https://github.com/verhyppo/node-e2e-testing

Image
0

94

verosteam/node-e2e-testing repository overview

Docker

Docker image built by the project, allows you to run the application from a docker container:

docker run docker run node-e2e-testing:latest

To override application configutation, just mount a .env file under /opt/e2e-testing

docker \
  -v /path/to/my/.env:/opt/e2e-testing/.env
  run node-e2e-testing:latest

In order to override default values, you can override the command:

docker \
  -v /path/to/my/.env:/opt/e2e-testing/.env
  -v $/path/to/my/collection/:/opt/e2e-testing/project/ \
  run node-e2e-testing:latest

Placeholder removal

You can replace as many variable as you prefer via the .env file.

example file

APP_REPLACE_PREFIX=APP_ENVIRONMENT_
APP_NEWMAN_ITERATIONS=1
APP_ENVIRONMENT_baseUrl=https://run.mocky.io
PropertyDefault ValueDescription
APP_REPLACE_PREFIXAPP_ENVIRONMENT_common prefix for replacement variables in your postman environment
APP_POSTMAN_ITERATIONS1number of times the Postman collection needs to be executed

In the example above, APP_ENVIRONMENT_baseUrl is the one that will be substituted to the projects/postman_environment.json when found in the forman {{baseUrl}}

at the end of the execution, the generated postman environment and the test results in json and junit report format, can be found in the target

Tag summary

Content type

Image

Digest

Size

78.8 MB

Last updated

over 5 years ago

docker pull verosteam/node-e2e-testing:1.0.1