https://github.com/allure-examples/allure-karma-example
Example of generate allure report from Karma javascript tests
https://github.com/allure-examples/allure-karma-example
Last synced: 3 months ago
JSON representation
Example of generate allure report from Karma javascript tests
- Host: GitHub
- URL: https://github.com/allure-examples/allure-karma-example
- Owner: allure-examples
- Created: 2013-11-29T09:56:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-06-14T06:12:50.000Z (almost 5 years ago)
- Last Synced: 2025-06-17T01:43:12.970Z (12 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[NodeJS and npm]: http://nodejs.org/
[Karma]: http://karma-runner.github.io/
[allure-jenkins-plugin]: #
[karma.conf.js]: karma.conf.js
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
1. [Karma] - test launcher, install with `npm install -g karma`
1. Install other dependencies with `npm install`
1. 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].