Skip to content

test: rename the fixtures directory to testdata - #298

Merged
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:test/move-fixtures-to-testdata
Aug 16, 2026
Merged

test: rename the fixtures directory to testdata#298
fredbi merged 1 commit into
go-openapi:masterfrom
fredbi:test/move-fixtures-to-testdata

Conversation

@fredbi

@fredbi fredbi commented Aug 16, 2026

Copy link
Copy Markdown
Member

Test material now lives in testdata/. The Go toolchain gives testdata a defined meaning — package patterns, vet and the build all skip it — whereas fixtures/ was ours alone.

The embedded tree in the expander tests is retargeted, along with the paths read out of it; embed places no restriction on testdata. The schemas/ tree embedded by the library itself is untouched, as are the comments that speak of test fixtures as a concept rather than a directory.

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

Test material now lives in testdata/. The Go toolchain gives testdata a
defined meaning — package patterns, vet and the build all skip it —
whereas fixtures/ was ours alone.

The embedded tree in the expander tests is retargeted, along with the
paths read out of it; embed places no restriction on testdata. The
schemas/ tree embedded by the library itself is untouched, as are the
comments that speak of test fixtures as a concept rather than a
directory.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.43%. Comparing base (e682f66) to head (8dae0e6).
⚠️ Report is 5 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #298   +/-   ##
=======================================
  Coverage   68.43%   68.43%           
=======================================
  Files          30       30           
  Lines        2433     2433           
=======================================
  Hits         1665     1665           
  Misses        599      599           
  Partials      169      169           

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

@fredbi
fredbi merged commit e592343 into go-openapi:master Aug 16, 2026
21 checks passed
@fredbi
fredbi deleted the test/move-fixtures-to-testdata branch August 16, 2026 16:42
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