Skip to content

test: rename the fixtures directory to testdata - #166

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#166
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/, aligning with fmts/testdata which already followed the convention. The Go toolchain gives testdata a defined meaning — package patterns, vet and the build all skip it — whereas fixtures/ was ours alone.

The nine go:embed directives are retargeted; embed places no restriction on testdata. Two things deliberately keep the old spelling: the raw.githubusercontent URLs inside the linked-definition specs, which point at the upstream reverb/swagger-spec tree, and the swag/jsonutils/fixtures_test dependency in go.sum.

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/, aligning with fmts/testdata which
already followed the convention. The Go toolchain gives testdata a
defined meaning — package patterns, vet and the build all skip it —
whereas fixtures/ was ours alone.

The nine go:embed directives are retargeted; embed places no restriction
on testdata. Two things deliberately keep the old spelling: the
raw.githubusercontent URLs inside the linked-definition specs, which
point at the upstream reverb/swagger-spec tree, and the
swag/jsonutils/fixtures_test dependency in go.sum.

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 83.82%. Comparing base (3cd66bb) to head (2d9e35b).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #166   +/-   ##
=======================================
  Coverage   83.82%   83.82%           
=======================================
  Files           5        5           
  Lines         303      303           
=======================================
  Hits          254      254           
  Misses         31       31           
  Partials       18       18           

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

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