Skip to content

Automated Tests

jwzimmer edited this page May 22, 2017 · 7 revisions

Requirements

  • Selenium
    • "selenium-webdriver": "2.44.0"
  • TAP
    • In dev dependencies
  • Currently, Chromedriver, but this will be replaced by Saucelabs (or maybe Browserstack, at some point)

Running the tests

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/test_statistics_page.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

  • [TBD]