This package has been deprecated

Author message:

No longer maintained.

conjure

0.1.4 • Public • Published

conjure

Parallel CasperJS runner, BDD flow, module-based tests, API helpers

  • describe()/it() and hooks
  • require('relative/path/in/my/proj/module.js)
  • Bootstrap test modules with common settings and arguments
  • Full access to standard CasperJS APIs
  • Helpers use preexisting jQuery for selectors
  • Stack traces that cover describe()/it() and helpers
  • Load test directories recursively, filter by it()/filename regex

Build Status

Examples

Basic test module

module.exports = function(conjure) {
  conjure.set('initPath', '/login').set('initSel', '.login');
  conjure.test('login page', function() {
    this.describe('form', function() {
      this.it('should not auto-check "Remember Me"' , function() {
        this.conjure.selectorExists('.remember-me');
        this.conjure.selectorMissing('.remember-me:checked');
      });
    });
  });
};

Stack traces

  • Displayed after the standard CasperJS trace.
  • Cover describe()/it() and helpers.

After TypeError:

Trace screenshot

By default, traces are limited to logs from the most recent it().

After TypeError with --full-trace:

Trace screenshot

After a timeout:

Consecutive repeats are collapsed into a count (ex. x 34).

Timeout trace screenshot

More Examples

CLI

Basic run:

conjure --server /path/to/myproj/http-server

Start the server. Run all test scripts under <cwd>/test that end with .js. Kill the server.

More Examples

API

Context properties in it() callbacks

  • utils: Native CasperJS module.
  • colorizer: Native CasperjS module.
  • casper: Native CasperJS module.
  • conjure: Helpers described below.
  • Custom properties added to this in subsequently executed hooks and it() callbacks.

API

Installation

NPM

npm install conjure

Tests

npm test

Documentation

License

MIT

/conjure/

    Package Sidebar

    Install

    npm i conjure

    Weekly Downloads

    9

    Version

    0.1.4

    License

    MIT

    Last publish

    Collaborators

    • codeactual