Using the Test Evolve Runner locally
Prerequisites
- docker
How to use the Runner locally
- Pull the docker image from our gcr registry.
docker pull gcr.io/test-evolve-prod/spark/te-runner:1.2.0
- Run the image from the root directory of your test evolve repository.
docker run --name te-runner-local --rm -d -v "$(pwd):/home/testing" -p 5900:5900 gcr.io/test-evolve-prod/spark/te-runner:1.2.0
- You will now have a container running locally on your system. Execute the following command to extract the container's information. Take note of the CONTAINER_ID.
docker ps
- Connect to the running container.
docker exec -it <CONTAINER_ID> bash
cd
into your repository.
cd /home/testing
- Install dependencies.
- Ruby
- JavaScript
- TypeScript
bundle
You will need to add the registry for the testevolve npm package before installing.
echo "@testevolve:registry=https://oxy.jfrog.io/artifactory/api/npm/testevolve-frameworkjs-local/" > ~/.npmrc
npm i
You will need to add the registry for the testevolve npm package before installing.
echo "@testevolve:registry=https://oxy.jfrog.io/artifactory/api/npm/testevolve-frameworkjs-local/" > ~/.npmrc
npm i
- Run tests via commmand line.
- Ruby
- JavaScript
- TypeScript
cucumber features
rake test
npm run test
npm run test
note
You can use a tool such as VNC Viewer to show you whats happening in the container as you are running the tests. You exposed the 5900 port so you can add a new connection to localhost:5900.