bengourley / chutney

Run TAP tests at Sauce Labs.

Home Page:https://github.com/derhuerst/chutney

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chutney

Run TAP tests at Sauce Labs. A more opinionated smokestack.

npm version build status dependency status dev dependency status ISC-licensed chat on gitter

This tool exposes the test runner with your tests using localtunnel, opens them in a Webdriver-controlled browser from Sauce Labs and pipes their output to stdout. It is is heavily inspired by smokestack, but more lightweight because it can runy tests only on remote browsers. It is less battle-proven and has less niche features.

Installing

npm install chutney

Usage

chutney requires you to have TAP-generating tests, which you bundle e.g. using Browserify. You will also need a Sauce Labs account.

// test.js
const test = require('tape')
const awesomeTool = require('.')

test('awesome tool is awesome', (t) => {
	t.plan(1)
	t.equal(awesomeTool(), 'awesome')
})

Export your Sauce Labs credentials as well as the desired platform & browser.

export SAUCE_USER=derhuerst
export SAUCE_KEY=1a04c633-6a58-4aba-8287-54fdd18f9851
export PLATFORM='Windows 10'
export BROWSER=Chrome

Now run the tests. You may pretty-print the results using any reporter like tap-spec.

browserify test.js | chutney | tap-spec

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

About

Run TAP tests at Sauce Labs.

https://github.com/derhuerst/chutney

License:ISC License


Languages

Language:JavaScript 97.0%Language:HTML 3.0%