Skip to content

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

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

@michakraus michakraus commented Oct 9, 2026 •

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. 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/defects.jl test/integration/defects.jl src/particle_list.jl, src/particle.jl, src/hdf5_utils.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 (selected (defects.jl -> integration/defects.jl): Pass 12 Fail 0 Error 0 Broken 0 Total 12).
  • Julia julia version 1.13.1, load average At start: load averages 3,58 4,60 4,38. The base run started at 4.79 4.82 4.46 and the branch run at 6.25 5.15 4.59..
  • Changed include paths or comments in the moved files: test/integration/defects.jl: none (the file has no relative include or joinpath(@__DIR__, ...) path).

🤖 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 85.71%. Comparing base (4beb80c) to head (e89e265).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #19   +/-   ##
=======================================
  Coverage   85.71%   85.71%           
=======================================
  Files           3        3           
  Lines          98       98           
=======================================
  Hits           84       84           
  Misses         14       14           

☔ 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 fb1e53d into main Oct 9, 2026
13 checks passed
@michakraus
michakraus deleted the tests/toplevel-files branch October 9, 2026 16:22
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