woldie / karma-quixote

Quixote for Karma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

karma-quixote

Quixote for Karma

Installation

Install the plugin from npm:

$ npm install karma-quixote --save-dev

Or from Github:

$ npm install 'git+https://github.com/woldie/karma-quixote.git' --save-dev

Instructions on how to install karma can be found here

Configuration

In your Karma configuration:

  • add require('karma-quixote') to the plugins list, and
  • add quixote to the frameworks key
// karma.conf.js
module.exports = function(config) {
  config.set({
    plugins: [ require('karma-quixote'), ... ],
  
    frameworks: ['quixote', ... ],
    
        .
        .
        .
  });
};

Usage

This karma plugin simply loads and installs the global quixote namespace object. It is your responsibility to initialize a QFrame for Karma to add to its DOM and then make quixote assertions in your tests as described on the Quixote page

License

The MIT License (MIT)

About

Quixote for Karma

License:MIT License


Languages

Language:JavaScript 100.0%