Coder Social home page Coder Social logo

chutney's Introduction

chutney

Run TAP tests at Sauce Labs. A more opinionated smokestack. airtap is a another, well-known alternative.

npm version build status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

  1. Using localtunnel, exposes the test runner HTML page with your tests,
  2. opens its URL in a Webdriver-controlled browser at Sauce Labs,
  3. pipes their output to stdout, so that you can use it as a drop-in replacement for node test.js.

It is is heavily inspired by smokestack, but more lightweight because it will run the tests only on remote browsers. It is less battle-proven and has less niche features.

Installing

npm install chutney

Guide

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

Usage

Usage:
    chutney [--timeout <seconds>]

Options:
    --timeout  -t  Set the timeout in seconds. Default: 20

Examples:
    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.

chutney's People

Contributors

bengourley avatar dependabot[bot] avatar derhuerst avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bengourley

chutney's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.