Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

About

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

Resources

License

Packages

No packages published
You can’t perform that action at this time.