bitovi / bitovi/funcunit

FuncUnit NPM module

Open
#72 3 comments 0 reactions 0 assignees View on GitHub
p3
Dominant language
JavaScript
Stars
571
Forks
370
PR merge metrics
No merged PRs in 30d

Description

To follow up on the discussion if FuncUnit should be an NPM module started in #40 I propose the following:

Provide FuncUnit itself (basically this repository) as an NPM module but additionally add a `funcunit` command line tool which lets you
- Run tests in different browsers (PhantomJS by default) on the command line using [Testee](github.com/bitovi/testee.js)
- Initialize the default HTML page plus the library
- Provide a server that gathers and runs all your tests

For example:

> funcunit run module.test.js --lib mocha

Will run the tests from `module.test.js` in PhantomJS using a default HTML test page with Mocha initialized (`module.test.js` has to be a valid Mocha test file of course) and report to the command line.

> funcunit run *.test.js --lib qunit --browser firefox

Will run all `.test.js` files in Firefox using a default HTML test page with QUnit initialized and report to the command line.

> funcunit server *.test.js --lib jasmine

Will start up a static webserver that when opened in a webbrowser will serve the default HTML page with Jasmine initialized and run all `.test.js` files in the current folder.

> funcunit init test/index.html --lib mocha

Will write the default HTML test page with Mocha and FuncUnit to `test/index.html`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.