Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated invalid target error message #2212

Closed
wants to merge 1 commit into from

Conversation

MarkOSullivan94
Copy link

@MarkOSullivan94 MarkOSullivan94 commented May 29, 2024

Resolves #2211

@github-actions github-actions bot added the package: patrol_cli Related to the patrol_cli package label May 29, 2024
Copy link
Collaborator

@piotruela piotruela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the input, just one small comment. Please also update to failing test

@@ -62,7 +62,7 @@ class TestFinder {

testFiles.addAll(foundTargets);
} else {
throwToolExit('target $target is invalid');
throwToolExit('target $target is invalid. Does your test file(s) end with "_test.dart"?');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error message would be incorrect in case when someone will set custom test file suffix using pubspec config. Could you update the error so that it will use the suffix?

@piotruela
Copy link
Collaborator

Replaced by #2331.

@piotruela piotruela closed this Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: patrol_cli Related to the patrol_cli package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[patrol_cli] "target <target location> is invalid" - message is misleading
3 participants