drkibitz / node-pixi-pixitest

Test lib for node-pixi.

Home Page:https://github.com/drkibitz/node-pixi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version

Node Pixi - pixitest

A test lib for node-pixi. The purpose of this module is to maintain a centralized codebase to support node-pixi cross-platform tests.

Install

node-pixi-pixitest can be installed with Node and NPM. Use --save-dev to automattically append it to your package.json devDependencies.

npm install node-pixi-pixitest --save-dev

Usage

This module comes with Chai.js and Resemble.js. These namespaces are defined globally in the browser or node:

  • chai
  • expect (Shortcut to chai.expect)
  • resemble
  • pixitest

To use in the browser:

<script src="pixitest.js"></script>

To use in node.js:

var pixitest = require('node-pixi-pixitest');
console.log(global.pixitest === pixitest); // true

Build

node-pixi-pixitest can be compiled for the browser with Grunt. If you don't already have this, go install Node and NPM then install the Grunt Command Line.

npm install -g grunt-cli

Get the source:

git clone https://github.com/drkibitz/node-pixi-pixitest.git

Then, within your cloned repository, install node-pixi-pixitest devDependencies using NPM:

npm install

Then build with Grunt:

grunt

Contribute

Want to contribute to node-pixi? Just make a pull request or a suggestion on Github. Please make sure you write tests, and run them before committing changes.

About

Test lib for node-pixi.

https://github.com/drkibitz/node-pixi


Languages

Language:JavaScript 100.0%