3.2.0-beta.0 • Published 5 months ago

karma-allure2-reporter v3.2.0-beta.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Karma Allure 2 Reporter

A Karma reporter for generating Allure 2 test results.

Installation

The easiest way is to install karma-allure2-reporter as a devDependency, by running

npm install karma-allure2-reporter --save-dev

Configuration

For configuration details see Allure Report Documentation.

Examples

Basic

// karma.conf.js
module.exports = function (config) {
  config.set({
    plugins: [
      'karma-allure2-reporter'
    ],

    reporters: ['allure'],

    allureReporter: {
      resultsDir: 'allure-results' // output directory for the allure report - can be omitted (default: allure-results)
    }
  });
};

Custom Configuration

// karma.conf.js
module.exports = function (config) {
  config.set({
    plugins: [
      'karma-allure2-reporter'
    ],

    reporters: ['allure'],

    allureReporter: {
      customOptions: {
        projectLanguage: 'javascript', // by default 'javascript'
        testFramework: 'jasmine', // by default 'jasmine'
        packageLabel: { // add affixes to 'package' label. By default it is undefined
          prefix: 'example.', // by default it is an undefined
          suffix: '.example' // by default it is an undefined
        },
        parentSuiteLabel: { // add affixes to 'parentSuite' label. By default it is undefined
          prefix: 'example.', // by default it is an undefined
          suffix: '.example' // by default it is an undefined
        }
      }
    }
  });
};

You can pass list of reporters as a CLI argument too:

karma start --reporters allure

For more information about Allure see the Allure core project.

For more information on Karma see the homepage.

3.2.0-beta.0

5 months ago

3.1.0-beta.0

6 months ago

3.0.9-beta.5

6 months ago

3.0.9-beta.4

6 months ago

3.0.9-beta.3

6 months ago

3.0.9-beta.2

6 months ago

3.0.9-beta.1

6 months ago

3.0.9-beta.0

6 months ago

3.0.8-beta.6

6 months ago

3.0.8-beta.5

6 months ago

3.0.8-beta.4

6 months ago

3.0.8-beta.3

6 months ago

3.0.8

6 months ago