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

🐛 Fix p command for umbrella projects #48

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

randycoulman
Copy link
Owner

In an umbrella project, the p (pattern) command was not matching any files.

This happened because it uses test as the default path to find files to match, which doesn't exist in an umbrella project.

With this change, we detect an umbrella project and in that case, wildcard-match the test directories of all of the apps in the umbrella.

It is still possible to specify the :test_paths config option for mix test. If that config setting is present, mix test.interactive will use that setting and not default to the wildcard setting.

In an umbrella project, the `p` (pattern) command was not matching any files.

This happened because it uses `test` as the default path to find files to match, which doesn't exist in an umbrella project.

With this change, we detect an umbrella project and in that case, wildcard-match the `test` directories of all of the apps in the umbrella.

It is still possible to specify the `:test_paths` config option for `mix test`. If that config setting is present, `mix test.interactive` will use that setting and not default to the wildcard setting.
@randycoulman randycoulman merged commit a552d1a into main Oct 8, 2021
@randycoulman randycoulman deleted the fix/p-commmand-in-umbrella-apps branch October 8, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants