Sunday, 15 March 2015

angularjs - How to modify protractor html screenshot reporter to show report for each "expect" (assertion ) instead of each "it" block in spec file. -



angularjs - How to modify protractor html screenshot reporter to show report for each "expect" (assertion ) instead of each "it" block in spec file. -

suppose test :

it('should have history', function() {

add(1, 2);

expect(history.count()).toequal(3);//

add(5, 6);

expect(history.count()).toequal(0); // b

});

if b fails whole of spec shown failed in protractor html screenshot report. want html reporter show study @ expect level instead of "it" level, i.e along showing spec failed, should show assertion within spec passed , assertion failed.

some thing this:

should have history : failed

a -> passed

b-> failed

angularjs jasmine protractor angularjs-e2e

No comments:

Post a Comment