JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25
  • Score
    100M100P100Q49950F
  • License ISC

Package up testing options, levels, apis, and dependencies into one simple lib

Package Exports

  • fiveby

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fiveby) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Fiveby Join the chat at https://gitter.im/dowjones/fiveby

npm build status Code Climate Coverage Status

All the things you expect from a robust testing framework by neatly packaging: WebDriverJS, mocha, and should with a little glue and zero magic:

var fiveby = require('fiveby');

fiveby(function (browser) {
  return describe('Google Search in ' + browser.name, function () {
      it('should work', function () {
        browser.get('http://www.google.com');
        var searchBox = browser.findElement(by.name('q'));
        searchBox.sendKeys('awesome');
        return searchBox.getAttribute('value').then(function (value) {
          'awesome'.should.equal(value);
        });
      });
    });
});

####Run it (quick)

mocha tests/** --delay --timeout 30000

####OR (recommended) Add gulp and some convention to make it even more powerful: slush-fiveby. slush-fiveby is a simple fiveby project generator/example.

###What's unique about fiveby?

###Configuration - fiveby-config.json

{
  "implicitWait": 5000,
  "hubUrl": null,
  "browsers": {
    "firefox": true,
    "chrome": {
      "version": "37.0.2062.103",
      "chromeOptions": {
          "args": ["--disable-extensions"]
        }
    },
    "phantomjs": true
  },
  "disableBrowsers": false
}

disableBrowsers and hubUrl are optional, disableBrowsers defaults to false

*Use phantomjs 2.0, if you are on OSX you will need a custom build

###English?

#####Have little to no experience with end to end testing?

Ok, this tool will allow you to write a bit of javascript that will open any browser (even mobile), emulate user behavior via a few simple commands, and then verify what's displayed onscreen is correct. You can compile large suites of these tests and easily run them against many different browsers at once and get nice reports. It can be run with something like jenkins to automate further. Or use any of the popular SaaS providers like:

Sauce Labs BrowserStack

###Pre-reqs

See docs folder for even more details!