How to generate a full html report with nCover command line - ncover

I have nCover 4.5 version,
I am trying to export the coverage report to html
But once I am sending it to someone else by email, he is not able to open the other webpages since it is linked to my localhost 127.0.0.0 ip. How can I export the full html report independently to my localhost.
I am using command line:
C:\Users\aaa>ncover report --project=MyProj --execution=08/17/2015
--file=c:\MyFile.html
Thanks

Just found the answer:
Only in nCover version 5, it is possible to generate a full html report.
http://www.ncover.com/blog/sharing-code-coverage-results-ncover-code-central/
see "The Detailed Report" section

Related

dev tools console: don't show path in the links of console messages?

Is it possible to make chrome dev tool's console shorten the source code link by only showing the base file name and line number without the whole path?
--BobG

Report is not fully displaying while using HTML publisher plugin in Jenkins

I am generating reports using protractor-multiple-cucumber-html-reporter-plugin in my local system and it is perfectly working.But when i am running this protractor script using Jenkins, I am not able to generate same report there using HTML Publisher plugin.The generated report looks like a broken one.Its not displaying the images and not navigating when clicking on links.I am using Chrome version of 75, Java with jdk1.8.0_201, Jenkins of version 2.263.4 and Html plugin of version 1.25.I have tried below code, but none of them worked for me.
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "*");
i am able to disabled the protection.But still report is not fully loading for me.
The actual report is look like
But in Jenkins, after disabling the protection,it look like
Can anyone help me? Thanks in Advance.
Try to install this plugin https://chrome.google.com/webstore/detail/disable-content-security/ieelmcmcagommplceebfedjlakkhpden?hl=en
Make sure to enable it after you're on the report page, and then reload the page. If this works, I'll explain what happened and what else you can do to permanently fix it
We need to add all files(css,js etc) while configuring the HTML publisher plugin, as like below
or else we need to keep the 'include files' field as empty. so that it will take all associate files. And then we need to disable the protection by
this link
so that we will get actual report.

Jenkins HTML Publisher Plugin: No external links with Jenkins 1.643

I have a Jenkins job, where I generate an HTML-Page as a post buildstep, containing an image link ( HTML img tag). This HTML page is published by the HTMLPublisher Plugin for each job.
This has always worked great. But since I have updated Jenkins to v. 1.643, I only see a blank page when I click the published HTML page.
I've tried out a lot of things and found out the following strange behaviour:
Since the update, I cannot embed external links into the HTML-pages I publish.
If I embed an image from an external location (img src="somelocation/xxx.jpg), the image won't be displayed.
If I examine the HTML page with Firefox, I can see that the image tag is greyed out like it was invisible, but it is not.
If I embed a normal hyperlink, pointing to an external location, I can see the link in the displayed page, but when I click on it, nothing happens.
It is like Jenkins would not permit external links in this context.
Please help me out here :)
Thank you!
Edit:
Thanks to Dave Bacher, he gave me the right hint.
Look at this page to see Jenkins' new security policy.
https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy#ConfiguringContentSecurityPolicy-Implementation
You have to relax the rules, so that embedding external images is allowed again.
For testing it, just type the following in your script console:
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox; img-src *;")
This will allow embedding images from any external website.
If you run Jenkins on Ubuntu and you want to set this permanently, just edit the file /etc/default/jenkins. Under # arguments to pass to java add the following line:
JAVA_ARGS="-Dhudson.model.DirectoryBrowserSupport.CSP=\"sandbox; img-src *;\""
The issue you're seeing is likely related to recent security fixes. See the Configuring Content Security Policy wiki page for details on how to relax the Jenkins configuration.
The CSP header sent by Jenkins can be modified by setting the system property hudson.model.DirectoryBrowserSupport.CSP:
If its value is the empty string, e.g. java -Dhudson.model.DirectoryBrowserSupport.CSP= -jar jenkins.war then the header will not be sent at all.
(Warning!) This is potentially very unsafe and should only be used after reviewing the overall security setup.
You can experiment with different settings using the Jenkins Script Console.
Also as the wiki page notes, make sure you've upgraded to HTML Publisher 1.10 (or later).
I know the original question was for Linux, but this will also help out the Windows users... If you have Jenkins installed as a service (starting from Jenkins.exe) you will need to change the arguments in jenkins.xml for that property to persist.
If you are going to use the unsafe blank option remember to put the parameter in quotes. Below is my example line from jenkins.xml:
<arguments>-Xrs -Xmx1048m -XX:MaxPermSize=512m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle "-Dhudson.model.DirectoryBrowserSupport.CSP= " -jar "%BASE%\jenkins.war" --httpPort=8080</arguments>
If you are using Red Hat then update JENKINS_JAVA_OPTIONS

plugin to print reports right to printer in grails

I have no background printing reports others than when I use to use crystal report in small Visual Basic applications, now I am starting using grails and I need to print some reports in some pages with fixed constraints like receipt, I search in plug-ins but I do not know which one is the recommended one in this scenario
thanks for your time and help
The Rendering plugin can create PDF files from gsp code. The PDFs can then be saved or printed as a report.
http://grails.org/plugin/rendering
Also a Jasper Reports plugin exists but I have not used that but that might fit your needs better.
http://grails.org/plugin/jasper

Debugging a Dart WebApp with Launch target "URL" fails

I am using Dart Editor r22223 to debug a WebApp. If I launch the HTML file debugging works but if I open the HTML via URL (in my case that's http://localhost:8080/samplewebappohnewebui.html) then debugging seems not possible.
I am able the set breakpoints but the debugger does not stop at the breaktpoints.
Any hints?
[Update]
The reason for serving the HTML-file on 8080 is that the HTML file is build by Velocity...
[Update 2]
OK - I added my Dev-Configuration. In the background there is Eclipse running Jetty on 8080 but I am using Eclipse only for the Java things - not for Dart. For Dart I am using Dart-Editor.
[Update 3]
[Update 4]
Console shows message on clicks but the breakpoint does not stop the program at line 16...
Seems like the issue isn't really fixed.
As a workaround, you can serve the page at the same URL the "normal" launch would have (the "HTML file" field in the run configuration)
In your case, this would be http://localhost:8080/JRelais.Server.REST/WebContent/samplewebappohnewebui.html‌​
I also filed a new bug report addressing this problem, as I don't think the old one will ever be reopened.

Resources