Skip to content

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

@dalybrown

Description

@dalybrown

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions