Allure Report links auto redirect to the last build
allure-examples / allure-karma-example Goto Github PK
View Code? Open in Web Editor NEWExample of generate allure report from Karma javascript tests
Example of generate allure report from Karma javascript tests
npm test: not ok code 0 but report: No defects in test run. Good job!
report: http://ilyar.github.io/allure-karma-example/#/defects
What am I doing wrong?
And how can I provide Behaviors info?
$ karma --version
Karma version: 0.12.21
$ npm test
> [email protected] test /home/ilyar/lab/qa/karma-example
> karma start --single-run
INFO [karma]: Karma v0.10.10 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
WARN [watcher]: Pattern "/home/ilyar/lab/qa/karma-example/src/*.js" does not match any file.
INFO [PhantomJS 1.9.7 (Linux)]: Connected on socket 61gkpi3PFmxUY0EAEHa2
ALLURE: { severity: 'blocker' }
ALLURE: { severity: 'critical' }
ALLURE: { description: 'This test has wrong assertions and will be failed' }
PhantomJS 1.9.7 (Linux) Arithmetic division test FAILED
Expected true to be false.
ALLURE: { severity: 'normal' }
ALLURE: { description: 'It\'s a round to nearest: result is the integer that is closest to value' }
ALLURE: { severity: 'minor' }
ALLURE: { description: 'This test will be broken' }
PhantomJS 1.9.7 (Linux) Math Math.noMethod() test FAILED
TypeError: 'undefined' is not a function (evaluating 'Math.noMethod(2)')
at /home/ilyar/lab/qa/karma-example/test/mathSpec.js:14
ALLURE: { description: 'This test has wrong assertions and will be failed' }
PhantomJS 1.9.7 (Linux) Math Math.cos() test FAILED
Expected 1 to be 0.
Expected -1 to be 0.
ALLURE: { step:
{ name: 'get the discriminant',
start: 1407945046501,
steps: [],
status: 'passed',
stop: 1407945046501 } }
ALLURE: { step:
{ name: 'getRoots',
start: 1407945046501,
steps: [ [Object], [Object], [Object] ],
status: 'passed',
stop: 1407945046501 } }
ALLURE: { step:
{ name: 'get the discriminant',
start: 1407945046501,
steps: [],
status: 'passed',
stop: 1407945046501 } }
ALLURE: { step:
{ name: 'getRoot',
start: 1407945046502,
steps: [],
status: 'passed',
stop: 1407945046502 } }
ALLURE: { step:
{ name: 'getRoot',
start: 1407945046502,
steps: [],
status: 'passed',
stop: 1407945046502 } }
PhantomJS 1.9.7 (Linux): Executed 11 of 11 (3 FAILED) (0.166 secs / 0.003 secs)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
$ allure generate report/
Successfully generated report to /home/ilyar/lab/qa/karma-example/output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.