-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bda117
commit 7b91141
Showing
8 changed files
with
69 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
pids | ||
logs | ||
results | ||
|
||
node_modules | ||
npm-debug.log | ||
|
||
examples/* | ||
/node_modules/ | ||
/lib-cov/ | ||
/coverage.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
all: lint test coverage | ||
|
||
clean: | ||
@rm -f coverage.html | ||
@rm -rf lib-cov | ||
|
||
lint: | ||
@node_modules/.bin/jshint lib | ||
|
||
test: | ||
@node_modules/.bin/mocha | ||
|
||
coverage: lib-cov | ||
@SAUCELABS_COV=1 node_modules/.bin/mocha --reporter html-cov > coverage.html | ||
|
||
todo: | ||
@fgrep -H -e TODO -e FIXME -r lib test || true | ||
|
||
lib-cov: | ||
@jscoverage lib lib-cov | ||
|
||
.PHONY: clean lint test coverage todo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
module.exports = require('./lib/Saucelabs'); | ||
module.exports = process.env.SAUCELABS_COV ? | ||
require('./lib-cov/Saucelabs') : | ||
require('./lib/Saucelabs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
{ | ||
"author": "Dan Jenkins <dan.jenkins@holidayextras.com> (www.dan-jenkins.co.uk)", | ||
"name": "saucelabs", | ||
"description": "A wrapper around Saucelabs REST API", | ||
"version": "0.0.9", | ||
|
||
"name": "saucelabs", | ||
"description": "A wrapper around Sauce Labs REST API", | ||
"version": "0.0.9", | ||
|
||
"homepage": "https://github.com/holidayextras/node-saucelabs", | ||
|
||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/holidayextras/node-saucelabs.git" | ||
"url": "git://github.com/holidayextras/node-saucelabs.git" | ||
}, | ||
"main": "index.js", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"optionalDependencies": {}, | ||
|
||
"devDependencies": { | ||
"jshint": "*", | ||
"mocha": "1.9.x", | ||
"chai": "1.5.x", | ||
"nock": "0.17.x" | ||
}, | ||
|
||
"engines": { | ||
"node": "*" | ||
}, | ||
|
||
"scripts": { | ||
"test": "make test" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var SauceLabs = require('..'); | ||
|
||
describe('SauceLabs', function () { | ||
var sauce; | ||
|
||
describe('#constructor', function () { | ||
it('can be instantiated with `new`', function () { | ||
sauce = new SauceLabs(); | ||
sauce.should.be.an.instanceof(SauceLabs); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Chai | ||
global.chai = require('chai'); | ||
global.should = global.chai.should(); | ||
|
||
// Helpers | ||
global.chai.use(require('../helpers/')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = function () {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--require ./test/bootstrap/ | ||
--ui bdd | ||
--reporter spec |