DelphiCodeCoverage / DelphiCodeCoverage

Mozilla Public License 2.0
75 stars 34 forks source link

Adding group project support #37

Open mppbg opened 1 year ago

mppbg commented 1 year ago

Adding support for mapping map files when working with Delphi Group Ex projects:

GroupProject.groupproj

In the final HTML or XML report the units do not generate an average for units in the subprojects

MHumm commented 1 year ago

Thanks for this commit! I try to find the time to look at it soon. I don't fully understand your description yet, but: is it about improving support for using the wizard in project groups rather than for single projects?

mppbg commented 1 year ago

Hello @MHumm yes you are correct, I work with bpls where I separated my projects by modules and I have a pipeline where it will check all code coverage, but the current codecoverage does not support group projects so some units were not generating roof. I coded an example that you can use for a better understanding. https://github.com/mppbg/ProjetGroupCodeCoverageExample

In this case I have two packages, package1 contains the Service.IMCCalculator unit and package2 contains the Module2.Service.AgeCalculator unit, but in my test project I only tested the Service.IMCCalculator unit so I hope that when I run codcoverage the Module2.Service.AgeCalculator unit appears in my report with 0 code coverage