|
This is from clover reports, uses width in a scale 0-200, so a 50% will be width="100" <TABLE class="barGraph" cellspacing="0"> The styles are The image is available here This modified version of the .jsl will detect if the value provided by an aggregator ends in the character '%'. If that is the case it will generate a progress bar using a technique similar to the one described in a previous comment. The generation relies on the following new properties: It works for both JUnit pass rate and JCoverage; only problem I was not able to solve so far was the spacing (padding?) between the left and right images (see screenshot). I believe it is introduced by the Maven CSS. Any idea on how to eliminate it? See how there is a space between the left and right halves of the progress bar... See how there is a space between the left and right halves of the progress bar... image used for right side of progress bar. image used for green side of progress bar. This version uses the "clover technique" of using a transparent gif ply cell background colors. It also breaks the bar graph to a second row, to prevent a visually annoying effect when the bar was full (100 or 0 percent), in which case the bar uses only one cell instead of two. Hi Sean, Thanks for the patch. I've tried to apply it and I have a few issues: 1/ It's not in patch format which means I have a lot of work to do to apply it and I may not be doing the right thing. Please find attached as a CVS patch (the format that you need to provide) what I have understood of your patch. 2/ It's not working. Running "maven plugin:test" in the dashboard plugin fails. 3/ I don't get the PNG images displayed in the master report. I got some weird images appearing in blue. I'm using IE. Please try it with IE as it has to work with IE. Thanks Transformed in a proper CVS patch > Hi Sean, > Thanks for the patch. I've tried to apply it and I have a few issues: > 2/ It's not working. Running "maven plugin:test" in the dashboard > 3/ I don't get the PNG images displayed in the master report. I got > Thanks CVS diff for latest version of dashboard.jsl Hi Nascif (sorry for mistaking you for Sean 1/ I have already attached the patch. Could you please apply it on your machine on a clean checkout and verify you can run "maven plugin:test"? 2/ Your patch is still not valid. It is missing several files (see the patch I have attached which contains everything) 3/ I have spent some time fixing the errors in indentation you have introduced in the dashboard.jsl file (see my patch)... We'll get there! Hi Vincent, I found a problem with the patch; the second version I posted uses slightly different variables. Here they are (for plugin.properties):
Please make a new patch and I will give it a try. But if plugin.install is failing, there is something else wrong, probably with the .jsl syntax. I will create a new checkout later and take a look. Also, what is the best approach for adding an image to the plugin, and have it be copied to the maven images file? > I found a problem with the patch; the second version I posted uses > slightly different variables. Here they are (for Please add those to your patch of course. > Please make a new patch and I will give it a try. Er? You're the one providing a patch, right? > Also, what is the best approach for adding an image to the plugin, I've implemented that in the patch I've attached earlier on. Let me know when you have a fully working patch that includes everything. Thanks Patch for progress bar feature (created with "cvs diff -u"); transparent .gif used in the creation of percentage bar charts. Thanks again for the patch. Here's the outcome for me: 1/ A few minor things I've had to modify:
2/ The report works and has the nice progress bar! Cool 3/ The dashboard tests do NOT pass. Could you please always ensure you run the tests before submitting the patch? Do you think you could have a look and either fix the tests or fix the code (whichever is wrong)? The tests are run by typing "maven plugin:test" in the dashboard directory. We need to have 3 before I can commit the code. Thanks again (we're almost there!) Sorry about the tests. I will check them next week and provide a new patch. I was not aware of the resource property as well. Glad you liked the progress bar. Maybe a new image CSS class would do the trick - the default CSS for maven adds a border to all images. Regards, Hi Vicent, > / A few minor things I've had to modify: I was not able to find any documentation on that property, sorry. > 2/ The report works and has the nice progress bar! Cool > 3/ The dashboard tests do NOT pass. Could you please always ensure you run the > We need to have 3 before I can commit the code. I had make those other changes though, which I believe are on your side:
Please note the dependency on the FindBugs aggregator files; I know I should not add this cross-feature dependency but I couldn't help it Regards, New patch to fix unit tests. Applied! Thanks a lot > I had make those other changes though, which I believe are on your No, this is correct. The plugin depends on global files located in maven-plugins/ and in maven-plugins/plugin-parent. You need to check these out. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
Cool. Got a patch?