0.1.0 • Published 7 years ago

karma-squeeze v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

karma-squeeze

A Rule-Engine framework for karma.

Install

npm install karma-squeeze

Usage

  frameworks: ['mocha', 'squeeze'],
  
  // list of files / patterns to load in the browser
  files: [],
  
  // list of files to exclude
  exclude: [],
  
  squeeze: {

    // a list of files, such as `git diff --only-name` command output.
    listPath: "git_diff",

    // filtering rules for the above file list.
    // this rules will be merged `files` and `exclude` setting.
    rules: (builder) => {
      builder 
        .path('test/**/*.spec.js').includeSelf().and()
        .path('src/modules/core/**/*.js').include('test/**/*.spec.js').and()
        .path('src/modules/ui/**/*.js').include('test/**/*.spec.js').exclude('test/modules/core/**/*.spec.js').and()
        .other().include('test/**/*.spec.js')
      ;
    },
  },

License

This software is released under the MIT License, see LICENSE.txt.