A test lib for node-pixi. The purpose of this module is to maintain a centralized codebase to support node-pixi cross-platform tests.
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
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
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
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.