DEPRECATED - This package is deprecated in favor of carma-tap-webpack
This project is not a full starting point repository, only cover boilerplate settings related to test
. Don't opinionated on build
, lint
or any other topic relate to projects development.
Setting Karma
with many plugins it is a time consuming process, many hours of trial and error.
- karma, the test runner.
- karma-tap, karma TAP adapter.
- karma-tap-pretty-reporter cause everyone need a nice output. See supported prettifiers
- tape for test harness on node and browsers.
- tap-lochness for nested TAP test.
- karma browser launchers
karma-chrome-launcher
,karma-jsdom-launcher
, ... - webpack and karma-webpack
- When we test code on browsers at the end we will need bundle sources, test files and assets. Other solutions can be use like
browserify
. We opinionated onwebpack
- When Hot Module Replacement (HMR) is needed, webpack is the way to go.
- On Karma
autowatch
mode, for a good performance, a robust cache and rebuild solution is needed,webpack
is best on this apart.
Why all karma
complex setup, why not just use the very simple tape?
If your project tests need
- browsers launch/switch/management
- file bundle
- file watch mode
Karma will provide it!
git clone https://github.com/bySabi/karma--tap--boilerplate
cd karma--tap--boilerplate
npm install
npm run testonly
Edit spec/test_spec.js
to see watch
file functionality in action
- Documentation improvement
- Feel free to send any PR