Plamen, Il mer 23 ott 2019, 20:29 Plamen Totev <plamen.iv.to...@gmail.com> ha scritto:
> Hi, > > I would like to create plugin that generates test coverage report. I > know that there are existing plugins for that, but I want the report to > include not only line coverage but also other data such as mutation > coverage (and maybe some code quality issues). Also I want to be able to > generate report only for the changed lines in the last commit. To best > of my knowledge there is no existing plugin that does that in single > report. > > To create such report I need to generate HTML files from the Java > sources files and annotate the lines with the data from the report. > Maven JXR is great for generating HTML files but unfortunately the class > that is responsible for generating the HTML for a single Java class > (JavaCodeTransform) is not extensible. > > Do you think it would make sense to refactor it to be extensible and > make the filters plugable so the output can be customized? Yes, it my have sense. As far as I know we do not have a standard way to provide extensions to plugins, if anyone on the list has some suggestion please chime in, otherwise I would go to make the class name (JavaCodeTransform) configurable as a mojo parameter Or it will be > better to just create my own implementation using code from > JavaCodeTransform > If you mean 'forking' the plugin I think it won't be a good idea, as your fork won't receive updates from the community version Hope that helps Enrico > > Regards, > Plamen Totev > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > >