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.
To execute tests and get report, you must install and configure your environment:
- NodeJS and npm - test running from this environment
- Karma - test launcher, install with
npm install -g karma
- Install other dependencies with
npm install
- 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.