warn if no test items found#215
Merged
Merged
Conversation
Member
Author
|
Logs a warning: Before (master) julia> runtests("test/testfiles/_happy_tests.jl"; name="blahahah_nope")
[ Info: Scanning for test items in project `ReTestItems` at paths: test/testfiles/_happy_tests.jl
[ Info: Finished scanning for test items in 0.04 seconds. Scheduling 0 tests on pid 61468
[ Tests Completed: 0/0 test items were run.
Test Summary: |Time
ReTestItems | None 0.0sThis PR: julia> runtests("test/testfiles/_happy_tests.jl"; name="blahahah_nope")
[ Info: Scanning for test items in project `ReTestItems` at paths: test/testfiles/_happy_tests.jl
[ Info: Finished scanning for test items in 0.06 seconds.
┌ Warning: No test items found.
└ @ ReTestItems ~/repos/ReTestItems.jl/src/ReTestItems.jl:381This is also more consistent with the behaviour we see when the specified file doesn't exist when julia> runtests("test/no_such_tests.jl")
┌ Warning: No such path "test/no_such_tests.jl"
└ @ ReTestItems ~/repos/ReTestItems.jl/src/ReTestItems.jl:121 |
Member
Author
|
follow-up PR to make this throw an error, but that can come next: #216 |
382d934 to
f7e1cb4
Compare
Drvi
approved these changes
Jul 7, 2025
ce2e663 to
6b5b2d7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's always seemed slightly odd that running 0 tests looks so similar to successfully running some tests, and (i suspect) this could also confuse
our AI overlordstools like Claude Code (as suggested at https://youtu.be/nfOVgz_omlU?feature=shared&t=1168).