Skip to main content

Using the Test Evolve Runner locally

Prerequisites

  • docker

How to use the Runner locally

  1. Pull the docker image from our gcr registry.
docker pull gcr.io/test-evolve-prod/spark/te-runner:1.2.0
  1. 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
  1. 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
  1. Connect to the running container.
docker exec -it <CONTAINER_ID> bash
  1. cd into your repository.
cd /home/testing
  1. Install dependencies.
bundle
  1. Run tests via commmand line.
cucumber features

rake 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.