fmpp

Cobertura code coverage for Freemarker auto-generated code

不羁的心 提交于 2020-01-15 10:47:49
问题 I am trying to set up Cobertura code coverage on a project which includes auto-generated code, created from templates using Freemarker (explicitly, using the fmpp maven plugin). I then have unit tests for those auto-generated classes. However, these unit tests are not being considered by Cobertura when calculating code coverage. The auto-generated classes appear in the report, but the coverage on those classes is always 0%. First, is there some configuration for Cobertura that I'm missing?