Skip to content

Move the top-level test files that mirror no source file - #341

Merged
michakraus merged 1 commit into
mainfrom
tests/toplevel-files
Oct 9, 2026
Merged

michakraus merged 1 commit into
mainfrom
tests/toplevel-files

Conversation

@michakraus

Copy link
Copy Markdown
Member

What

The test files at the top level of test/ that mirror no source file move to where the test convention puts them: test/<path>.jl for a test of src/<path>.jl, the directory of the sources for a test of several files of one directory, and test/integration/ for a test of the whole package or of several directories. Each file keeps its label and group; only its path in test/runtests.jl changes.

old path new path source files the test reaches
test/documented_defaults.jl test/integration/documented_defaults.jl src/layers/symplectic_attention.jl, src/architectures/symplectic_transformer.jl, src/architectures/standard_transformer_integrator.jl
test/norm_eltype.jl test/utils.jl src/utils.jl
test/map_to_cpu_tests.jl test/map_to_cpu.jl src/map_to_cpu.jl

Checks

  • The layout check of the test convention: clean.
  • run-tests.jl list on this branch and on main: labels and groups equal line for line; only the paths of the moved files differ.
  • run-tests.jl full --jobs 4 on this branch and on main: both pass with the same totals over all files. Each moved file, run alone on main at its old path and here at its new path, gives the same totals for its label (documented_defaults.jl -> integration/documented_defaults.jl (row 'selected'): Pass 16 Fail 0 Error 0 Broken 0 Total 16; norm_eltype.jl -> utils.jl (row 'selected'): Pass 6 Fail 0 Error 0 Broken 0 Total 6; map_to_cpu_tests.jl -> map_to_cpu.jl (row 'selected'): Pass 25 Fail 0 Error 0 Broken 0 Total 25).
  • CHANGELOG.md: one entry under the unreleased changes records the three moves and why each file goes where it goes.
  • test/runtests.jl: the three include paths of the moved files change; labels, groups and order are the same.
  • Content changes in the moved files: none.
  • Julia julia version 1.13.1.

Open pull requests that also change files under test/: #340, #338, #337, #336, #329, #321, #310, #251, #207. The later one to merge rebases.

🤖 Generated with Claude Code

The test convention keeps a test file at the top level of test/ only
where it mirrors src/<name>.jl. Each moved file keeps its label and
group in test/runtests.jl.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.64%. Comparing base (d7c8960) to head (12af920).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #341   +/-   ##
=======================================
  Coverage   86.64%   86.64%           
=======================================
  Files          76       76           
  Lines        2786     2786           
=======================================
  Hits         2414     2414           
  Misses        372      372           

☔ 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.

@michakraus
michakraus merged commit cde854b into main Oct 9, 2026
15 of 16 checks passed
@michakraus
michakraus deleted the tests/toplevel-files branch October 9, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant