Skip to content

Use Test Modules in tests instead of Elixir built-in modules #14383

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

Merged
merged 2 commits into from
Apr 7, 2025

Conversation

maennchen
Copy link
Member

Prep for #14343

Copy link
Member

@josevalim josevalim left a comment

Choose a reason for hiding this comment

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

Thank you @maennchen. Sorry I left the comments a bit everywhere but the summary is to not extract PathHelpers to a different module, let's simply defined it for the IEx suite instead, and let's make it automatically purges and deletes modules, so we don't have to explicitly call it every time.

import PathHelpers

write_beam(
defmodule ExampleModule do
Copy link
Member

Choose a reason for hiding this comment

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

We need to pick another name here to avoid conflicts.

@josevalim josevalim merged commit c0ba8a1 into elixir-lang:main Apr 7, 2025
10 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@maennchen maennchen deleted the jm/test_modules branch April 7, 2025 14:11
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.

2 participants