broccoli-testem-plugin

Plugin for Broccoli that runs tests with Testem

Usage no npm install needed!

<script type="module">
  import broccoliTestemPlugin from 'https://cdn.skypack.dev/broccoli-testem-plugin';
</script>

README

broccoli-testem-plugin

Plugin for Broccoli that runs tests with Testem.

Install

npm install broccoli-testem-plugin

Usage

// Brocfile.js
var broccoliTestem = require('broccoli-testem-plugin')

var runTests = broccoliTestem('inputTree/', {
  src_files: ['**/*.js'] // Files paths are relative to input tree
  // Here any testem options
})

module.exports = runTests

TDD mode

Use plugin with broccoli serve. Then on first build plugin will start testem server, and on rebuild file changes will be watched by testem.

Continious integration mode

Use with broccoli build, and set option ci: true.
With this option testem starts server, runs tests and exits. Plugin will wait until testem exits, and if some test will fail, task will return an error.

License

Public domain, see the LICENCE.md file.