AdaCore/gnatcoverage

GNATcoverage doesn't support child projects with a hyphen in their name

Opened this issue · 0 comments

I was playing around with GNATcoverage and noticed it couldn't ever find a project when running any of the actions on a project that had a hyphen in the filename. The resulting error message was always:

/usr/local/bin/gnatcov: project ../parent-child.gpr not found.

A typical pattern I follow when unit testing my libraries is to create a separate project file that extends the library (e.g. parent-tests.gpr) and then within the project file you can have project Parent.Tests extends.... This is supported by gprbuild, gnattest, gnatprove, etc.

However, I tried to integrate gnatcov and it didn't work. I updated the name of the project to parent_tests.gpr and then project Parent_Tests extends... and it did work.

I think this is a bug and it has to do with finding a project that has a hyphen in its filename.