Set up E2E tests

  1. Clone gpf-e2e repository:

git clone git@github.com:seqpipe/gpf-e2e.git
  1. Install dependencies:

cd gpf-e2e
npm install
  1. Download build environment from jenkins:

https://nemo.seqpipe.org/job/iossifovlab/job/gpf-e2e/job/master/ or click here for latest successful build env.

  1. Move the file in gpf-e2e/build-env folder:

mv ~/Downloads/iossifovlab.gpf-e2e.combined-input.build-env.sh ./build-env
  1. Initialize submodules:

git submodule init
git pull --recurse-submodules
  1. Make sure the build-env folder has only 1 file, the downloaded input file

  2. Activate gpf environment

  3. Run build setup script:

./build_setup.sh

If some issues appear, try running docker system prune -a and try again. (This command doesn’t stop running containers; if you want a full cleanup, stop the running ones too)

  1. List containers:

docker ps
  1. Get registry.seqpipe.org/seqpipe-gpf-full:master container id and run the following command with the id:

docker inspect \
  --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \
  {CONTAINER_ID}
  1. Run the tests:

  • To navigate to the e2e instance, go to http://{{IP}}/gpf/ in your browser.

  • To run e2e tests using cypress browser:

npx cypress open --config baseUrl=http://{{IP}}/gpf/
  • To run e2e tests in terminal:

npx cypress run --config baseUrl=http://{{IP}}/gpf/