karma-cljs-test

0.1.0 • Public • Published

karma-cljs-test

Adapter for the cljs.test testing framework.

Installation

The easiest way is to keep karma-cljs-test as a dependency in your package.json:

{
  "devDependencies": {
    "karma": "~0.12.0",
    "karma-cljs-test": "~0.1.0"
  }
}

You can simply do it by:

npm install karma-cljs-test --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  var root = 'target/public/dev';
 
  config.set({
    frameworks: ['cljs-test'],
 
    files: [
      root + '/goog/base.js',
      root + '/cljs_deps.js',
      root + '/app.js',
      {pattern: root + '/*.js', included: false},
      {pattern: root + '/**/*.js', included: false}
    ],
 
    client: {
      args: ['app.test_runner.run_with_karma']
    },
  });
};

Package Sidebar

Install

npm i karma-cljs-test

Weekly Downloads

13,883

Version

0.1.0

License

MIT

Last publish

Collaborators

  • honzabrecka