GitXplorerGitXplorer
m

component-test

public
97 stars
10 forks
22 issues

Commits

List of commits on branch master.
Unverified
c7c52906880c7af62b0a2c6278cc658cf1244a03

bump

committed 9 years ago
Unverified
dbf9c72a9a1a50e1f1568b0b7da8f88d05486583

Resolve dependency path dynamically for npm 3 (#38)

rrobertmaldon committed 9 years ago
Unverified
9886ac4c13a5c29e91b2e84862dacb9650eca10e

Update history

jjameslnewell committed 9 years ago
Unverified
1c6b375ee69bab204bf542c98f6d0c519f732814

Version bump for phantomjs changes

jjameslnewell committed 9 years ago
Unverified
38e2e4918186c3608decbb2187082de4cd15a10a

Merge pull request #36 from jameslnewell/master

mmatthewmueller committed 9 years ago
Unverified
e9d342741c77c8cefed4361f3f6e720eb2ee0476

update mocha-phantomjs and require a working phantomjs version

committed 9 years ago

README

The README file for this repository.

component-test

Minimal configuration component test runner supporting browser testing, phantomjs, and saucelabs.

Installation

npm install -g component-test

API

Browser

In browser testing

component test browser

browser

Phantom

Test using phantomjs.

component test phantom

phantom

Saucelabs

Test using saucelabs.

component test sauce -b "iphone 6.0 Mac OS 10.8, firefox 5 Windows XP"

saucelabs

Travis

First download the travis gem:

gem install travis

Encrypt your credentials:

travis encrypt SAUCE=username:accessKey -r component/domify

Then add the browsers you want to test. Here's what the component/domify .travis.yml looks like:

language: node_js
node_js:
  - '0.10'
env:
  global:
    - secure: PT7QR0DCGcZ+JjH4kpsaGHPYyjdbKbm44Wj9nsHA/QgIG/FRBCvsAU1OyaWHF8KCP6p0TEfhgeW+vUlZfxlbpDa4eSR8kjqkcNTR1CWKqYfjjQzBFzibrmLE+gKOnIRxFhdwUjzatRc1A2B+jX/03HoIgsUhnG83xiinz21dBJI=
  matrix:
    - BROWSER="iphone 6.1 Mac 10.8"
    - BROWSER="ipad 5.1 Mac 10.8"
    - BROWSER="firefox 6 Mac 10.6"d

And here's the result:

travis

TODO

  • Offer higher-level API over saucelabs in separate repo (like zuul)
  • Use Travis API for encryption (eg. mimic behavior of travis encrypt)
  • Provide API for adding browsers to .travis.yml

License

(The MIT License)

Copyright (c) 2013 Matthew Mueller <mattmuelle@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.