Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dalybrown opened this issue Apr 5, 2023 · 0 comments

Comments

@dalybrown
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant