Test Suite for Integrators
Introduction
In order to help testing the services implemented by the carriers, Mercado Envíos developed a tool for running tests during early stages of development.
This tool executes a set of tests which reproduces the different scenarios that usually take place in the production environment and allows minimizing errors, maximizing quality of the final product and reducing development times.
As it is implemented on Docker, it can be easily executed by the carrier in any environment during any stage of development.
Docker Installation
Mercado Envíos test suite relies on Docker to be executed. Docker can be installed from:
- Install Docker for Windows 10
- Install Docker for Mac
- Install Docker for Ubuntu "apt install docker.io"
- Install Docker for others
Note: If you have Windows or Mac OS, we recommend using the latest versions of each operating system (Windows 10+ and macOS) to run Docker natively and avoid using hypervisors or virtualization software like VirtualBox.
Download the Test App
Once Docker is installed, the Testing App can be downloaded by running the following command:
bash1docker pull mercadolibre/carrier-integration-tests:latest
Running the Test App
The Testing App can be executed by running the following command:
bash1docker run -d --name cit -p 8080:8080 mercadolibre/carrier-integration-tests:latest
Then access http://localhost:8080/
After executing the application, you can verify its status by running the following command:
bash1docker ps -a
Once the system is running, it could be accessed from any browser at: localhost
Run the following command to stop the application:
bash1docker stop cit
To run it again:
bash1docker start cit
