jasmine-html-runner

Runs Jasmine's HTML Runner using phantomjs.

Usage no npm install needed!

<script type="module">
  import jasmineHtmlRunner from 'https://cdn.skypack.dev/jasmine-html-runner';
</script>

README

jasmine-html-runner for NodeJS

It uses phantomjs to execute your html jasmine spec runner and fetches the results when the test ends, then it outputs in the console.

External dependencies

phantomjs v1.6.0

Configuration file

A JSON file containing the following structure:

{
    "serverRootPath": ".",
    "servicesPrefix": '/webservice/',
    "jsonMocksPath": "./mocks/",
    "webServices": {
        "get": {
            "plan/search/definition": "mockSearchDefinition.json",
        },
        "post": {
            "plan/search": "mockPlanSearch.json"
        }
    }
}

Running

node index -c [path-to-configuration-file]