Skip to content

tomyam1/grunt-jasmine-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-jasmine-npm

Build Status

Runs jasmine tests with the official runner. Uses jasmine-reporters or jasmine-spec-reporter for reporting.

Install

npm install grunt-jasmine-npm

Options

  • reporters - A list of reporters to add to Jasmine. Defaults to [ 'JasmineSpecReporter' ].

    Each item can be either a string or an object.

    If its a string, it must be 'JasmineSpecReporter' or one the reporter names in jasmine-reporters: 'JUnitXmlReporter', 'NUnitXmlReporter', 'TapReporter', 'TeamCityReporter' or 'TerminalReporter'. No options will be passed to the constructor of the reporter.

    If its an object, it must have a type property as above. Its can have an options property which will be passed to the constructor of the reporter.

Example

To report to the console with jasmine-spec-reporter (with its default options) write a jUnit report to the reports directory with the JUnitXmlReporter reporter of jasmine-reporters:

jasmine: {
  test: {
    options: {
      reporters: [
        'JasmineSpecReporter'
        {
          type: 'JUnitXmlReporter',
          options: {
            savePath: 'reports'
          }
        }
      ]
    },
    src: [

      // helpers
      'src/**/*.helper.js'
      'src/**/*.helper.coffee'

      // specs
      'src/**/*.spec.js'
      'src/**/*.spec.coffee'
    ]
  },
},

About

Run Jasmine2 tests with the official jasmine-npm runner

Resources

License

Stars

Watchers

Forks

Packages

No packages published