Evilweed / protractor-beautiful-reporter

An npm module which provides html reports of your Protractor tests with screenshots
MIT License
169 stars 40 forks source link

Feature: Create a screenshot OR single html file of the compiled AngularJS view #156

Open RonanCodes opened 5 years ago

RonanCodes commented 5 years ago

Feature

Create a screenshot OR single html file of the compiled AngularJS view

Why

Jenkins HTMLReport plugin cannot display an AngularJS project, but it can display a simple HTML file.

miller45 commented 5 years ago

Do you know that you can add an additional reporter alongside the htmlreporter? You could add a Junit reporter and then import the result in jenkins with the Junit plugin https://wiki.jenkins.io/display/JENKINS/JUnit+Plugin. Usage of multiple reporters is describe here https://wiki.jenkins.io/display/JENKINS/JUnit+Plugin

miller45 commented 5 years ago

Making a screenshot (or better pdf) should be possible with opening the final report with phantomjs and make a pdf.

RonanCodes commented 5 years ago

I think a combination of these two things would be great when going back through your Jenkins builds trying to figure out where a bug was introduced.

RonanCodes commented 5 years ago

@miller45 is the PDF generation something we could add to this project? Where's a good starting point?

RonanCodes commented 5 years ago

@miller45 I'll give the junit approach a go and let you know how it goes!

miller45 commented 5 years ago

@RonanC If you don´t need screenshots it has the advantage that you can full integration into jenkinks

miller45 commented 5 years ago

@RonanDConnolly another user meantioned in #161 that you can make pdfs with chrome just via commandline options. I created an example for that in the wiki. Please look at Print-report-to-pdf if you wish.

miller45 commented 5 years ago

Thepdf is black and white though. I still have to find out how to print background colors with chrome.