mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-17 19:12:40 -05:00
56b46fd861
* remove selenium from package.json * Add package.json & README for the integration directory * add newline at end of file * add chromedriver dependency |
||
---|---|---|
.. | ||
smoke-testing | ||
teacher-registration | ||
package.json | ||
README.md |
Requirements
- Selenium
- See this directory's package.json
- TAP
- In the scratch-www repo's package.json
- Currently, we also require that you download Chromedriver, but this will be replaced by Saucelabs imminently
Running the tests
- By default, tests run against our Staging instance, but you can pass in a different location if you want to run the tests against e.g. your local build
Using tap
- Run all tests in the smoke-testing directory from the command-line:
$ make smoke
- To run a single file from the command-line:
$ node_modules/.bin/tap ./test/integration/smoke-testing/filename.js --timeout=3600
- The timeout var is for the length of the entire tap test-suite; if you are getting a timeout error, you may need to adjust this value (some of the Selenium tests take a while to run)
Using sauce
- We're still working on setting this up; more info coming shortly