0.0.4 • Published 6 years ago
coffeekraken-testing-stack v0.0.4
Testing Stack
The purpose of this package is to provide a high level API for unit, BDD, performance, etc testing. His goal is to simplify your life by installing all the dependencies needed, let you just write your tests and run them without headache.
Provided features
- Simple testing config through
.testsconfig
JSON file - Testing using Karma - Automatically pack and compile ES6 js tests to ES5 using Webpack and Babel
- Performance tracking - coming soon
Install
npm install coffeekraken-testing-stack --save-dev
Usage
Set your test script in your package.json
file like this
{
"scripts" : {
"test" : "coffeekraken-testing-stack"
}
}
Configuration
The configuration pass by creating a .testsconfig
file at thr root of your project, just like a .babelrc
or any other tools out there
{
"karma" : {
"files" : [
"tests/**/*.js"
],
"browsers" : ["PhantomJS"],
"others karma config..."
},
"performance" : {
"coming soon"
}
}
See karma available configurations
By default, the karma package will use mocha as testing framework, but you can as well change that by overriding the configuration. Don't forget to install tha packages needed here
Performance
feature coming soon