Skip to content
Snippets Groups Projects
Verified Commit 24cdac34 authored by Michael Mazour's avatar Michael Mazour Committed by David Mehren
Browse files

Update README description of acceptance tests.

parent b79350bd
No related branches found
No related tags found
No related merge requests found
...@@ -59,19 +59,18 @@ Acceptance tests are run against a live service, which runs in the `acceptance_t ...@@ -59,19 +59,18 @@ Acceptance tests are run against a live service, which runs in the `acceptance_t
To run the tests out-of-the-box, the makefile defines: To run the tests out-of-the-box, the makefile defines:
``` ```
make install # Only needs running once, or when npm packages are updated make test_acceptance
make acceptance_test
``` ```
However, during development it is often useful to leave the service running for rapid iteration on the acceptance tests. This can be done with: However, during development it is often useful to leave the service running for rapid iteration on the acceptance tests. This can be done with:
``` ```
make acceptance_test_start_service make test_acceptance_app_start_service
make acceptance_test_run # Run as many times as needed during development make test_acceptance_app_run # Run as many times as needed during development
make acceptance_test_stop_service make test_acceptance_app_stop_service
``` ```
`make acceptance_test` just runs these three commands in sequence. `make test_acceptance` just runs these three commands in sequence and then runs `make test_acceptance_modules` which performs the tests for each module in the `modules` directory. (Note that there is not currently an equivalent to the `-start` / `-run` x _n_ / `-stop` series for modules.)
During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI: During development it is often useful to only run a subset of tests, which can be configured with arguments to the mocha CLI:
...@@ -111,12 +110,3 @@ We gratefully acknowledge [IconShock](http://www.iconshock.com) for use of the i ...@@ -111,12 +110,3 @@ We gratefully acknowledge [IconShock](http://www.iconshock.com) for use of the i
in the `public/img/iconshock` directory found via in the `public/img/iconshock` directory found via
[findicons.com](http://findicons.com/icon/498089/height?id=526085#) [findicons.com](http://findicons.com/icon/498089/height?id=526085#)
## Acceptance Tests
To run the Acceptance tests:
- set `allowPublicAccess` to true, either in the configuration file,
or by setting the environment variable `SHARELATEX_ALLOW_PUBLIC_ACCESS` to `true`
- start the server (`grunt`)
- in a separate terminal, run `grunt test:acceptance`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment