atropa-jasmine-spec-runner-generator-html

2022.11.17 • Public • Published

A utility for use with jasmine-standalone

Generates Jasmine Spec Runner html pages for browser based JavaScript tests. This makes it possible to automatically update the spec runner when building your project.

It's easy to use:

var JasmineSpecRunnerGenerator = require(
    'atropa-jasmine-spec-runner-generator-html');

specRunner = new JasmineSpecRunnerGenerator(
    '/js/jasmine/', 'banana tester.html', 'Banana Test Suite');

specRunner.addSources(__dirname, '/js/myLib/');

specRunner.addSpecs('./specs/', '/myLib/test/specs/');

specRunner.generate(console.log);

/*
specRunner.generateFile(
    function () {
        console.log('ok');
    }
);
*/

Install it on node from npm

npm install atropa-jasmine-spec-runner-generator-html

Visual studio intellisense support is available in docs/vsdoc/OpenLayersAll.js Full documentation may be found at http://matthewkastor.github.io/atropa-jasmine-spec-runner-generator-html

Package Sidebar

Install

npm i atropa-jasmine-spec-runner-generator-html

Weekly Downloads

2

Version

2022.11.17

License

none

Unpacked Size

178 kB

Total Files

21

Last publish

Collaborators

  • kastor