Is it possible to convert a cobertura.xml file to an html report or similar, so it can be viewed locally? I already have it pretty-printing in Jenkins but we need it locally too...
The report has been produced using istanbul/nyc, and the code it's producing coverage for is in node.js.
pycobertura (repository) answers your need of converting a Cobertura XML report into an human-friendly HTML page:
pycobertura show --format html --output coverage.html cobertura.xml
Then open coverage.html in your browser to check the report.
Related
I'm trying to convert pdf files into HTML.
When using the PDFBox jar the following:
java -jar pdfbox-app-2.0.7.jar ExtractText -html 1.pdf
I'm getting a valid HTML file as expected.
But when using
tika --html 1.pdf
I'm getting a file missing a lot of tags, such as <b>, <i> etc
I saw that TIKA is using PDFBox as the pdf extractor, so I guess there must be a way to get the same result, but I can't seem to find the right way to do that.
Any suggestions?
I am using python 3.6 and pytest-html to generate HTML reports .
Everything is successfully working but when i share my html report to my manager the css of the entire document is out of placed .can someone tell the reason to why it is happening and the solution for it .
The view of reports when i run:
The view of the reports when i share the document with my manager
include --self-contained-html when you are calling your pytest...such as
pytest your.pyfilename --html=pathandfilename --self-contained-html.
Your result file have inline css in it.
html=report.html --self-contained-html
It seems like you are not sharing whole bunch of items like CSS with html file you are giving. Just place the CSS code inside your HTML rather than giving the path and it will solve your problem.
If I have something like the following:
The Manual
====================
Gregg Bolinger
v1.0, 2014-15
:doctype: book
:icons: font
:imagesdir: images
Preamble paragraph
include::chapter1.ad[]
include::chapter2.ad[]
I'd like so that each chapter renders in its own HTML file and is linked to from the TOC rather than everything being in a single book.html, for example. It seems to generate separate files already, but that's only because they are in the source directory. It is still combining everything into a single HTML page. I'm using the Gradle Asciidoctor plugin, if that helps to know.
Unless there's something in the gradle plugin that does chunked html, asciidoctor does not handle chunked output at the moment. It's on the list of things to do, but it hasn't been done. If you look at the issue, however, someone has create a custom script/converter to do it though, perhaps that will work for your case as well.
Using the asciidoctor-multipage extension, each chapter can be rendered in its own HTML file. The links in the TOC points to the respective HTML chapters rather than everything being in a single book.html. At the end of every HTML page, the extension also adds links to the next or previous page, as seen on this website.
Assuming you have already installed the asciidoctor, just do $ gem install asciidoctor-multipage in your command line to install the multipage extension.
After making your file-name.adoc with various chapters, $ cd to that folder and then do $ asciidoctor -r asciidoctor-multipage -b multipage_html5 -D test/out --backend multipage_html5 -a data-uri file-name.adoc. This command will embed any images in the file-name.adoc to the new .html files which will be saved in newly created test/out folder. I only tested this using Ubuntu 20.04.
As Sam Macharia answered, asciidoctor-multipage can achieve your goal.
Also, most Docbook toolchains let you control how content is "chunked" into HTML pages, including at the book, chapter, and section levels.
Antora is the "official" way to achieve your goal.
I have an infopath form which when submitted generates a pdf file with the same form content(XML) using itextsharp library.
I have a node in infopath form that contains the URL of an image from a sharepoint picture library. How do i embed this image into the pdf file generated? Any solution with xslt modification in my xsl file that i am using for transforming the form XML content?
Thanks for the help!
Someone's actually using InfoPath? First I've heard. Wow. Okay, so there's over 400 questions tagged infopath, but still...
iText's general HTML->PDF functions should convert standard <img src="..."> tags to PDF just fine. If that's not an option for some reason, iText's new XMLWorker may do the trick, released with 5.1.0.
There's even a demo page up: http://www.lowagie.com/xmlworker
I'm using NCover 3.0 .Want to integrate the results into CC.Net .Everything works fine, but the report shown in CC.Net after is not that detailed. I would like to be able to display the uncovered classes, methods and probably the source too.
This is what I have done on the NAnt build script
<ncover
program="${NCoverDir}\NCover.Console.exe"
testRunnerExe="nunit-console.exe"
testRunnerArgs="..\..\Vault\AppServices\VaultApp.sln /config:Release /noshadow"
coverageFile="coverage.xml"
appendTrendTo="coverage.trend" />
<ncoverreporting
program="${NCoverDir}\NCover.Reporting.exe"
projectName="TEST"
sortBy="Name"
maxTopUncoveredToReport="20"
hide="HideFullyCovered"
coverageTrendPath="coverage.trend"
outputPath="Ncovercoverage.xml" >
<coverageDataPaths>
<include name="coverage.xml" />
</coverageDataPaths>
<reports>
<report format="Xml" reportType="SymbolModule" />
</reports>
</ncoverreporting>
I suspect the report format is limited to Symbol module. How can I get a full coverage report as we get in HTML .
Since CC.NET uses an XML report, not an HTML report, you'd have to generate the HTML like you do now in your build script and then provide a link to it from your webdashboard. The cc.net plugin from NCover only works for single-page report xmls. You can't drill into source code, and etc. Making an HTML report and linking to it from your dashboard is the way to go.