Running Tests in CI/CD

1. Setting up the Metlo CLI Tool

You can run tests in your CI/CD by installing the Metlo CLI tool from npm:

$ npm i -g @metlo/cli
$ metlo init
✔ Host address of metlo backend : · http://localhost:8080

2. Running Tests

To run tests you need the production host that you have tests defined for and a target host you want to run tests against. In this case we are running the tests defined for test-ecommerce.metlo.com against the server running on http://locahost:8000.

$ metlo test -h test-ecommerce.metlo.com -t http://locahost:8000
All tests succeeded!