Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
run
 
 
 
 

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

About

Package that expose some high level testing api

Resources

License

Packages

No packages published
You can’t perform that action at this time.