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.
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 haveproject Parent.Tests extends.... This is supported bygprbuild,gnattest,gnatprove, etc.However, I tried to integrate
gnatcovand it didn't work. I updated the name of the project toparent_tests.gprand thenproject 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.