Skip to content

kossnocorp/karmak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karma + webpack - lot of code = Karmak

Build Status

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

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 <path>  webpack config path (./webpack.config.js)
    --karma-config <path>    Karma config path (./karma.conf.js)
    --pattern <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

karmak --webpack-config ./config/webpack.js --karma-config ./config/karma.js --pattern 'spec/spec_helper.js' --pattern 'spec/**/*_spec.js*' --single-run

Autotest

karmak --webpack-config ./config/webpack.js --karma-config ./config/karma.js --pattern 'spec/spec_helper.js' --pattern 'spec/**/*_spec.js*'

Contribute

Run tests

npm test

* There is few "slow" tests, do not worry about that, it's ok. They are such slow because of FS interactions.

About

Fast and reliable Karma + webpack integration

Resources

Stars

Watchers

Forks

Packages

No packages published