πŸ¦‘ Easy automatic (headless) browser testing. Powered by Karma, Webpack & Jasmine.
Clone or download
Latest commit 252e7e1 Jun 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add support for Webpack 4 (in addition to 3 & prior) Jun 29, 2018
test Add support for Webpack 4 (in addition to 3 & prior) Jun 29, 2018
.editorconfig Initial commit! πŸŽ‰ Jan 23, 2018
.gitignore Initial commit! πŸŽ‰ Jan 23, 2018
.travis.yml Update .travis.yml Jan 23, 2018
README.md fix spacing Jan 24, 2018
package.json 1.2.0 Jun 30, 2018

README.md

Karmatic npm travis

A simplified zero-configuration wrapper around Karma, Webpack, Jasmine & Puppeteer.

Why do I want this?

Karma, Webpack and Jasmine are all great. They're all also quite powerful and each highly configurable. When creating and maintaining small modules, duplication of these configurations and dependencies is cumbersome.

Karmatic is a zero-configuration wrapper around these tools with intelligent defaults, configuration auto-detection, and optimizations most configurations don't include.

Most importantly, Karmatic provides a (headless) browser test harness in a single dependency.

Installation

npm i -D karmatic

... then add a test script to your package.json:

{
    "scripts": {
    	"test": "karmatic"
    }
}

... now you can run your tests using npm t.

Test File Patterns

By default, Karmatic will find tests in any files ending in .test.js or _test.js. You can change this to any minimatch pattern (note the quotes to avoid shell expansion):

karmatic '**/*Spec.jsx?'

FAQ

Q: Is there an FAQ?**

Yes.

Projects Using Karmatic

Karmatic is pretty new! Here are some projects that have switched to it you may use as a reference:

License

MIT Β© developit