gulp-toolbox-test-node-jasmine

execute node unit test with jasmine

Usage no npm install needed!

<script type="module">
  import gulpToolboxTestNodeJasmine from 'https://cdn.skypack.dev/gulp-toolbox-test-node-jasmine';
</script>

README

gulp-toolbox-test-node-jasmine

Build Status bitHound Overall Score bitHound Dependencies semantic-release

test toolbox for nodejs using jasmine

Supports

Config

  • files.library:String: lib/**/*.js

    glob of all library files that should be tested

  • files.test.node.specs:Array<String>: ['test/node/**/*Spec.js']

    array of globs pointing to spec files

  • test.node.jasmine.preloadLibrary:Boolean: true

    weather or not the library files should be loaded even if the they're not required in the spec files

    this is required for accurate coverage reports since a library file will not be part of a report if it's not required

    this might have side-effects on script files that execute stuff on require

License

The MIT License

Copyright (C) 2016 Hannes Diercks

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.