Package that expose some high level testing api
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.resources
dist
src
tests
.babelrc
.editorconfig
.gitignore
.node-version
.travis.yml
LICENSE
README.md
package.json
run
tests.config.js
webpack.config.js
yarn.lock

README.md

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