Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.12 KB

File metadata and controls

39 lines (26 loc) · 1.12 KB

Testing

Speedometer uses Selenium for testing of the application itself. Tests are located in the /tests folder.

Sinon: Standalone test spies, stubs and mocks for JavaScript. Mocha: Testing framework.

Local Testing

Local Node.js Unit Testing

You can run the unit tests directly in Node.js using:

npm run test:node

In-Browser Testing

To run the in-browser tests locally, you'll need the browsers installed along with the corresponding driver:

Once installed you can run the following scripts:

npm run test:chrome
npm run test:firefox
npm run test:safari
npm run test:edge

Automated Testing

Currently Speedometer's tests run automatically, when pushing to the main branch or when opening a pr.