Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify protractor html screenshot reporter to show report for each “expect” (assertion ) instead of each “it” block in spec file. #39

Open
sachinarpit opened this issue Dec 9, 2014 · 4 comments

Comments

@sachinarpit
Copy link

I have 3 'it' specswith 27 expects in the code. protractor-html-screenshot-reporter includes 'it' specs but not expect level results.

Please let me know, can i make any configuration changes to make it work.

Thanks,
Arpit Jain

@jomendez
Copy link

I've to say this is not an issue, it is a "best practice" approach, the it is to describe with text all your test cases, so, as a best practice you should describe with an "it" every expect.
In your particular case you should wrap your 27 expect within an "it" statement for each one.

@Wavez
Copy link

Wavez commented Feb 2, 2015

@jomendez
It would be nice to see both the assertions and exceptions - a full report.

@idaneliz
Copy link

idaneliz commented Jun 4, 2015

But if I want to capture screenshot for a few steps in my "it" block and I want it will be prest in the HTML report as well, so it's not possible to use captureScreen() manually. is there any option to added more than one screenshot each "it" in the report?

@EMCP
Copy link

EMCP commented Aug 3, 2015

@jomendez did you reference these best practices from some document? if so can you please link it here so that I can benefit from knowing what is expected practice with jasmine + protractor. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants