DEV Community

Nikola Stojiljkovic
Nikola Stojiljkovic

Posted on

JaCoCo XML to HTML - my new FOSS tool written completely in PowerShell

I was looking for an HTML generator for Pester's unit tests coverage report XML and couldn't find one which does not depend on 3rd party tools/languages and is completely free.

So, I've built one.

https://github.com/constup/JaCoCo-XML-to-HTML-PowerShell

Key features

  • Pure PowerShell without dependencies
  • Code coverage statistics per group, package and source file
  • Source code coverage with colored lines, automatic source code language detection and syntax highlighting
  • All supported statistics are covered: instructions, branches, lines, complexity, methods and classes
  • Dark and light themes
  • Support for custom themes (Bootstrap or your own custom CSS)
  • Simple, but rich, well documented configuration (config file) with minimum mandatory fields - exactly 3: XML file, source code directory and HTML destination directory. The rest are pure customization options.
  • Easy integration with Pester
  • Mozilla Public License 2.0 (free and open source)

Note: I haven't finished writing all the tests, so it's marked as a "pre-release". My manual testing is confirming that it works on Pester's coverage XML reports, and I've used it on Windows and Linux (Mac testing pending).

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more