Skip to content

add --base-dir flag to flow test for custom search directory#2301

Open
holyfuchs wants to merge 1 commit intomasterfrom
holyfuchs/test-base-dir-flag
Open

add --base-dir flag to flow test for custom search directory#2301
holyfuchs wants to merge 1 commit intomasterfrom
holyfuchs/test-base-dir-flag

Conversation

@holyfuchs
Copy link
Member

The flow test command previously hard-coded "." as the root when auto-discovering *_test.cdc files. This adds a --base-dir flag so callers can point at a subdirectory, useful when submodules are part of the repository. When explicit file args are passed the flag is ignored, preserving existing behaviour.

Note: using a wildcard pattern like ./cadence/tests/*_test.cdc as explicit args does not recurse into subdirectories, silently missing test files nested further down. --base-dir cadence/tests avoids this by walking the full directory tree.

@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/test/test.go 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

2 participants