meteor/e2e

Name: e2e

Owner: Meteor

Description: End-to-end tests for Meteor's release process

Created: 2014-12-04 04:16:14.0

Updated: 2018-01-03 01:15:30.0

Pushed: 2015-09-16 16:08:33.0

Homepage:

Size: 483

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Meteor E2E Tests

Running Tests
age:

export SAUCE_LABS_ACCESS_KEY=...    # Find values in 1Password under "e2e"
export OAUTH_PROVIDERS_PASSWORD=...
export OAUTH_PROVIDER_SECRETS=...

node run [files ...] [--local] [--browsers=all] [--concurrency=5]

tions:

files           Files to run in `specs/`. If it's a directory, will
                search all files recursively. Defaults to 'specs/'.

--local         Run the tests against a local selenium server.

--browsers      List of browsers to launch. Defaults to all browsers listed
                in `config.js`. You can also list individual browsers like 
                this: `--browsers=chrome,firefox`, or you can add your 
                custom list to `exports.browserLists` in `config.js`.

--concurrency   Maximum number of browsers to launch at the same time. The
                default is what we have on our SauceLabs account.
Test Authoring

All test files should be located in specs/. Don't place test fixtures and helpers in there - put them in fixtures/. The tests are run with Mocha using a custom interface, so each spec (the it() block) is run inside a fiber. We have also wrapped methods on the wd (SauceLabs' official Node.js selenium webdriver bridge) browser instance to let them run synchronously if you don't pass a callback as the last argument (without blocking the event loop).

When tests are run, a wd browser instance will already be instantiated for you and available globally as browser. For assertions we are using Chai with chai.expect available globally.

The result is that your tests could look like this (isn't it nice?):

pecs/test/test_spec.js
ribe('Google', function () {

('should have the correct title', function () {
browser.get('http://www.google.com');
expect(browser.title()).to.contain('Google');
;


Working on the Test Runner

There are several parts:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.