Skip to content

Test/testdata convention - #232

Merged
fredbi merged 2 commits into
go-openapi:masterfrom
fredbi:test/testdata-convention
Aug 16, 2026
Merged

Test/testdata convention#232
fredbi merged 2 commits into
go-openapi:masterfrom
fredbi:test/testdata-convention

Conversation

@fredbi

@fredbi fredbi commented Aug 16, 2026

Copy link
Copy Markdown
Member

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.

fredbi added 2 commits August 16, 2026 17:26
Test material now lives in testdata/, diff/testdata/ and
internal/testintegration/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 testintegration module keeps working: go:embed
places no restriction on testdata, so the directive is just retargeted.

Note this does not change what consumers download. Module zips carry
testdata verbatim; only nested modules are excluded from the parent zip.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
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 91.95%. Comparing base (4814722) to head (89a3c48).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #232      +/-   ##
==========================================
- Coverage   92.02%   91.95%   -0.08%     
==========================================
  Files          30       29       -1     
  Lines        3399     3367      -32     
==========================================
- Hits         3128     3096      -32     
  Misses        189      189              
  Partials       82       82              

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

@fredbi
fredbi merged commit 8db696f into go-openapi:master Aug 16, 2026
25 checks passed
@fredbi
fredbi deleted the test/testdata-convention branch August 16, 2026 15:37
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