# karma-kickoff

> Kick off karma with ease along with running specific specs with one config file.

Latest version **0.0.6** (published 2017-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-kickoff
pnpm add karma-kickoff
yarn add karma-kickoff
bun add karma-kickoff
```

Provides the command `karma-kickoff`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2017-08-01 |
| First published | 2016-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nicholas McCready |
| Maintainers | nmccready |
| Keywords | karma, spec, testing, test |

## Links

- npm: https://www.npmjs.com/package/karma-kickoff
- Repository: https://github.com/nmccready/karma-kickoff
- Homepage: https://github.com/nmccready/karma-kickoff#readme
- Issues: https://github.com/nmccready/karma-kickoff/issues
- npm.io page: https://npm.io/package/karma-kickoff

## Dependencies (4)

- [karma](https://npm.io/package/karma.md) 1.X >= 0.13.X
- [yargs](https://npm.io/package/yargs.md) ^6.6.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.1.11

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2017-08-01
- 0.0.5 — 2017-07-31
- 0.0.4 — 2017-07-31
- 0.0.3 — 2017-01-26
- 0.0.2 — 2016-02-12
- 0.0.1 — 2016-01-27

## README

# karma-kickoff
Kick off karma with ease along with running specific specs with one config file.

Example:

```coffee
gulp = require 'gulp'
{log} = require 'gulp-util'
_ = require 'lodash'
karmaKick = require 'karma-kickoff'
argv = require('yargs').argv

opts =
  configFile: '../../karma.conf.coffee'
  logFn: log

gulp.task 'karma', (done) ->
  karmaKick done, _.extend {}, opts,
    reporters:['dots', 'coverage']
    singleRun: true

gulp.task 'karmaMocha', (done) ->
  karmaKick(done, opts)

gulp.task 'karmaFiles', (done) ->
  karmaKick done, _.extend {}, opts,
    appendFiles: argv.files
    lengthToPop: 2
    singleRun: true
```

where karma.conf.coffee or js had:

```
....
files: [
      'node_modules/phantomjs-polyfill/bind-polyfill.js'
      require.resolve('stripe-debug')#https://github.com/bendrucker/angular-stripe/issues/23
      '_public/scripts/vendor.js'
      '_public/styles/vendor.css'
      'frontend/**/scripts/**/*.coffee'
      'spec/fixtures/*.html'
      'spec/fixtures/*.json'
      'spec/frontend/bootstrap.spec.coffee'
      {pattern:'frontend/**/*coffee', included: false}
      {pattern:'common/**/*coffee', included: false}
      {pattern:'spec/**/*coffee', included: false}
      # 'spec/common/**/*spec.coffee'
      'spec/frontend/**/*spec.coffee'
    ]
```

The karmaFiles task is the important example here as testing single or multiple files is easy. Via the `appendFiles` and `lengthToPop` options.

So to test a specific spec:
`gulp karmaFiles --files=./spec/frontend/map/providers/providers.onboarding.spec.coffee`

---
_Source: https://npm.io/package/karma-kickoff · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
