jipodine / tac6

Library for in-browser test & coverage for ES6 JavaScript code flavor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tac6

Test And Coverage for es6

Library for in-browser test & coverage for ES6 JavaScript code flavor.

This library is a utility tool based on following js guidelines: Ircam-JS-Guidelines.

Install

npm install git+https://git@github.com/ircam-rnd/tac6.git --save-dev

Use

To use it, preferably, add in your package.json the following in the scripts key if your test file is located in "./tests/tests.js":

"test": "tac6"

or

"test": "tac6 -- <test file path>"

Then run npm test.

Be careful: I didn't succeed in using Chai assertion library. Chai uses arguments.callee that is incompatible with es6 to es5 traceur used to build the tests.js file for the in-browser mocha tests.

Options

--browser or -b to choose the browser which will run the mocha tests "firefox" "Google Chrome" "Safari" ...

--coverageDir

--url default http://0.0.0.0:3000

--port default to 3000

--manual if set the user should visit a given link to launch mocha tests in your target browser.

About

Library for in-browser test & coverage for ES6 JavaScript code flavor

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 96.2%Language:CSS 3.1%Language:HTML 0.6%