Skip to content

allure-examples/allure-karma-example

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Allure Karma Example

Example of generate allure report from Karma javascript tests. All you need is add plugin to Karma. See the karma.conf.js file to find out how to do it.

Running Tests

To execute tests and get report, you must install and configure your environment:

  1. NodeJS and npm - test running from this environment
  2. Karma - test launcher, install with npm install -g karma
  3. Install other dependencies with npm install
  4. Now you can run tests using npm test

Result xml will be in report/ directory. If you see an message about failed tests, don't worry we specially made some failed tests so you can see an error representation in report.

Furthermore, if you want html report, you need to build this project on jenkins with allure-jenkins-plugin.

About

Example of generate allure report from Karma javascript tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published