Set up E2E tests¶
Clone gpf-e2e repository:
git clone git@github.com:seqpipe/gpf-e2e.git
Install dependencies:
cd gpf-e2e
npm install
Download build environment from jenkins:
https://nemo.seqpipe.org/job/iossifovlab/job/gpf-e2e/job/master/ or click here for latest successful build env.
Move the file in gpf-e2e/build-env folder:
mv ~/Downloads/iossifovlab.gpf-e2e.combined-input.build-env.sh ./build-env
Initialize submodules:
git submodule init
git pull --recurse-submodules
Make sure the
build-envfolder has only 1 file, the downloaded input fileActivate gpf environment
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)
List containers:
docker ps
Get
registry.seqpipe.org/seqpipe-gpf-full:mastercontainer id and run the following command with the id:
docker inspect \
--format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \
{CONTAINER_ID}
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/