Skip to content

Load GAPDoc for the tests - #944

Open
fingolfin wants to merge 1 commit into
digraphs:mainfrom
fingolfin:mh/gapdoc
Open

Load GAPDoc for the tests#944
fingolfin wants to merge 1 commit into
digraphs:mainfrom
fingolfin:mh/gapdoc

Conversation

@fingolfin

Copy link
Copy Markdown
Contributor

tst/teststandard.g runs DigraphsTestManualExamples, which extracts the
examples from the manual and therefore needs GAPDoc. GAPDoc is only a
suggested package of Digraphs, so in a GAP where it is not loaded, e.g.
one started with `gap --bare', the test run ended with

Error, Variable: 'ExtractExamples' must have an assigned value

Declare GAPDoc in TestPackages and load it in tst/teststandard.g. Note
that TestPackages alone does not suffice: it makes the CI install the
package, but does not load it.

Digraphs itself does not need GAPDoc; all of its uses are in the test and
documentation helpers in gap/utils.gi.

See gap-system/gap#2434

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

tst/teststandard.g runs DigraphsTestManualExamples, which extracts the
examples from the manual and therefore needs GAPDoc. GAPDoc is only a
suggested package of Digraphs, so in a GAP where it is not loaded, e.g.
one started with `gap --bare', the test run ended with

    Error, Variable: 'ExtractExamples' must have an assigned value

Declare GAPDoc in TestPackages and load it in tst/teststandard.g. Note
that TestPackages alone does not suffice: it makes the CI install the
package, but does not load it.

Digraphs itself does not need GAPDoc; all of its uses are in the test and
documentation helpers in gap/utils.gi.

See gap-system/gap#2434

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.45%. Comparing base (494e1e4) to head (f466d69).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #944   +/-   ##
=======================================
  Coverage   97.45%   97.45%           
=======================================
  Files          50       50           
  Lines       21189    21189           
  Branches      639      639           
=======================================
  Hits        20649    20649           
  Misses        475      475           
  Partials       65       65           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

1 participant