Fix smoke test instructions (#1087)

This commit is contained in:
Matt Weiden
2020-01-02 16:32:00 -08:00
committed by GitHub
parent 97738e5c2d
commit 0d2cb14796
+7 -8
View File
@@ -29,17 +29,16 @@ End to end tests use two env variables:
On CI the end to end tests are run with `JEST_ENV` set to `prod` using the `smoke-test` make target. On CI the end to end tests are run with `JEST_ENV` set to `prod` using the `smoke-test` make target.
To run end to end tests as they will be run on CI To run end to end tests as they will be run on CI use the following command:
1. cellxgene should be built and installed as [specified in server dev](#install) ```
2. `export JEST_ENV='prod'` JEST_ENV=prod JEST_CXG_PORT=5000 make pydist install-dist dev-env smoke-test
3. `export JEST_CXG_PORT=5000` ```
4. Run `npm run --prefix client/ smoke-test`
Run end to end tests interactively during development Run end to end tests interactively during development
1. cellxgene should be installed as [specified in client dev](#install-1) 1. cellxgene should be installed as [specified in client dev](#install-1)
2. Follow [launch](#launch-1) instructions for client dev with dataset `example-dataset/pbmc3k` 1. Follow [launch](#launch-1) instructions for client dev with dataset `example-dataset/pbmc3k`
3. Run `make smoke-test` 1. Run `npm run e2e` or `make e2e` from the `client` directory
4. To debug a failing test `export JEST_ENV='debug'` and re-run. 1. To debug a failing test `export JEST_ENV='debug'` and re-run.
## Server dev ## Server dev
### Install ### Install