0.3.0 • Published 8 years ago

cf-smoke-test v0.3.0

Weekly downloads
18
License
-
Repository
github
Last release
8 years ago

cf-smoke test

Add smoke tests for article types in cf based webites.

Installation

npm install --save-dev cf-smoke-test

Usage

var SmokeTestRunner = require('cf-smoke-test')

// Pass in your application config
new SmokeTestRunner(config)
  .add([ /* Test cases */ ])
  .run()

// An example test case
{ type: 'article'
, bodyCheck: function (article, html, cb) {

    // `article` is the entity from the API
    // `html` is the response text from the site
    // Do some checks to make sure the html is as expected,
    // and callback with an error or null

    // OK
    cb(null)

    // not OK
    cb(new Error('This doesn’t look right, old chap!'))

  }
}
0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

1.0.0

8 years ago