GithubHelp home page GithubHelp logo

cheapseats's Introduction

Cheapseats

Dynamic functional test suite for spotlight using webdriver and mocha.

Cheapseats is designed build functional tests against the dashboards defined in spotlight and test them using webdriver.

It does this by building tests based on spotlight json dashboards.

Installing

npm install

Ensure you follow the nodegit install instructions.

Running

./cheapseats

you can also configure it with command line args for example

./cheapseats --reporter nyan --port 4444

If the application doesn't start and you recieve the error Error: connect ECONNREFUSED check that you are running a webdriver (selenium, phantomjs, etc) on the correct port.

Configuration

Common configuration options are listed below, these can be set in config.json, or when running from node directly as command line arguments:

  • --baseUrl - the server to run tests against.
  • --standalone - cheapseats will spin up its own instance of spotlight (and phantomj, if required) to run tests against, instead of using the server provided in --baseUrl.
  • --screenshots - directory to save a screenshot of each dashboard into. A falsy value will disable screenshots.
  • --path - cheapseats will look here for an instance of spotlight.
  • --clone - if cheapseats finds an empty directory at the location provided in --path, it will clone spotlight/master into this directory (Note: needs node-git to be installed).
  • --force - will make cheapseats always clone spotlight into the path provided, overwriting anything in that directory. Use with care
  • --port - the port on which cheapseats will look for a webdriver compatible interface (e.g. phantomjs, selenium). By default phantomjs will run on 5555 and selenium will run on 4444. Note that standalone mode will always attempt to start phantomjs on the port specified if no instance is found.
  • --browserWidth, --browserHeight - the dimensions of the browser window used to test the site.
  • --grep, --timeout, --slow, --reporter - options passed to mocha. See http://visionmedia.github.io/mocha/#usage for usage.
  • --unpublished - will run cheapseats against the unpublished dashboards

Standalone mode

If no baseUrl is set in the configuration, or the --standalone argument is provided then cheapseats will start the services it needs to run.

This includes an instance of spotlight, with configuration options provided in config.json serverConfig property, and phantomjs on port 5555.

cheapseats's People

Contributors

lennym avatar easternbloc avatar annapowellsmith avatar tombooth avatar alexmuller avatar nick-gravgaard avatar

Watchers

James Cloos avatar  avatar

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.