Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taylorhakes/karma-painless
A Karma plugin. Adapter for Painless test libary.
https://github.com/taylorhakes/karma-painless
Last synced: about 1 month ago
JSON representation
A Karma plugin. Adapter for Painless test libary.
- Host: GitHub
- URL: https://github.com/taylorhakes/karma-painless
- Owner: taylorhakes
- License: mit
- Created: 2016-02-14T22:02:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T03:57:21.000Z (over 8 years ago)
- Last Synced: 2024-10-06T19:35:30.555Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# karma-painless
A Karma plugin. Adapter for Painless test library.## Setup
### Install Karma
First install [karma](https://karma-runner.github.io/0.13/intro/installation.html) and get it setup### Install karma-painless and browserify
```
npm install karma-painless browserify --save-dev
```
You can also use with webpack### Karma Setup
```js
module.exports = function(config) {
config.set({
// ...
frameworks: ['browserify', 'painless'],
// list of files / patterns to load in the browser
files: [
'test/**/*.js'
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/**/*.js': [ 'browserify' ]
},
// ...
});
}
```
### Run your tests
```
karma start
```