https://github.com/kossnocorp/karmak
Fast and reliable Karma + webpack integration
https://github.com/kossnocorp/karmak
Last synced: 15 days ago
JSON representation
Fast and reliable Karma + webpack integration
- Host: GitHub
- URL: https://github.com/kossnocorp/karmak
- Owner: kossnocorp
- Created: 2014-09-25T13:36:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T08:10:25.000Z (about 10 years ago)
- Last Synced: 2024-05-21T12:28:47.798Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 301 KB
- Stars: 12
- Watchers: 4
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Karma + webpack - lot of code = Karmak
[](https://travis-ci.org/kossnocorp/karmak)**Warning:** currently Karmak is not tested well on different enviorments.
It works for my project, but may not play well for your's. Please open issue
if you have problems.## Installation
``` sh
npm install --save-dev karmak
```## Usage
### CLI
`./node_modules/.bin/karmak --help`:
```
Usage: karmak [options]Options:
-h, --help output usage information
-V, --version output the version number
--single-run signle run? (false)
--webpack-config webpack config path (./webpack.config.js)
--karma-config Karma config path (./karma.conf.js)
--pattern test files patterns (['**/*/_test_helper.js', '**/*_test.js', '!node_modules/**/*'])
--env NODE_ENV ('test' if undefined)
```### Preparation
Remove test patterns from Karma's `files` array and replace it with
`--pattern` arguments.### Single run
``` sh
karmak --webpack-config ./config/webpack.js --karma-config ./config/karma.js --pattern 'spec/spec_helper.js' --pattern 'spec/**/*_spec.js*' --single-run
```### Autotest
``` sh
karmak --webpack-config ./config/webpack.js --karma-config ./config/karma.js --pattern 'spec/spec_helper.js' --pattern 'spec/**/*_spec.js*'
```## Contribute
### Run tests
``` sh
npm test
```_* There is few "slow" tests, do not worry about that, it's ok. They are
such slow because of FS interactions._