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

add test for mix test --only async/sync filter #13651

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

SteffenDE
Copy link
Contributor

@@ -1101,6 +1101,48 @@ defmodule ExUnitTest do
assert third =~ "ThirdTestFIFO"
end

for async? <- [true, false] do
Copy link
Member

Choose a reason for hiding this comment

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

Could we instead run the same modules twice, but with different arguments, in the same test? That should make it faster and simpler!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes we can, but I needed to adjust run_with_filter, see the new commit. I'm not sure if I like this more.

@josevalim
Copy link
Member

Looks beautiful to me. If CI is happy, I am happy.

@josevalim josevalim merged commit 63d0932 into elixir-lang:main Jun 10, 2024
9 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants