Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Add Safari to Unit Tests #246

Merged
merged 3 commits into from
May 17, 2015
Merged

Conversation

smcgregor
Copy link
Member

This pull request adds Safari support for TravisCI as well as local tests. A few notes:

  • I am merging this with the "develop" branch. Most new pull requests should be made against this branch.
  • When launched without specifying a browser the unit tests default to launching Firefox.
  • There is a new option for specifying which browsers you want to run the tests on. Before issuing ./run_each.sh you can export BROWSERS_TO_TEST=Firefox,Chrome,Safari or any browser subset thereof.
  • You can also continue to use Karma's method of specifying browsers when the tests are running locally, karma start --browsers Firefox,Chrome,Safari.
  • Or you can specify browsers for the SauceLabs script with: karma start karma.conf-ci.js --single-run --sauce-browsers=Firefox,Chrome,Safari
  • The three different arguments are necessary because --browsers will break the SauceLabs script.

Special thanks to @sammyshj for figuring out the argument conflicts.

Closes #241

sambuddhabasu and others added 2 commits May 13, 2015 18:42
…fferent browsers on SauceLabs using command line argument

Change the filesToTest variable based on basePath

Changed basePath to current working directory

Made similar changes to work on SauceLabs

Run SauceLabs tests on specific browsers based on command line argument

Default browser for Karma is Firefox. Additional browsers can be set

Improved whitespace

Use BROWSERS_TO_TEST environment variable only when it is set

Used === for string comparison and removed semicolon for var object
@sambuddhabasu
Copy link
Member

👍

smcgregor added a commit that referenced this pull request May 17, 2015
@smcgregor smcgregor merged commit 933315d into privly:develop May 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants