I am using hudson CI to manage a direct Java web project, using ant to build.
I would like to point out that the coverage of unit test will never be worse than the previous build, thereby ensuring that any new code is always checked, or at least the coverage is constantly being improved.
Is there a hudson plugin that works this way?
Edit: I'm currently using Emma, but want to switch to another application for coverage.
In addition, as an explanation, I saw thresholds in some Hudson plugins, but this is not quite what I need. For example, what I would like is that if the coverage for Build # 12 was 46%, and someone checked in Build # 13 with 45% coverage, the build would break.
The reason I want to do this is because I have a code base with low testing coverage. We don’t have time to go back and write unit tests retroactively, but I would like to make sure that coverage continues to improve.
UPDATE: Dan pointed to the edge case with my plan, which will definitely be a problem. I think I need to rethink whether this is even a good idea.
java continuous-integration hudson code-coverage
Samberan
source share