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

Remove duplication in test function name #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joern-lang-studitemps
Copy link

ExUnit.Case.register_test/4 joins the test name with the name of the describe block to build a unique name and returns it as an atom. Since we use scenario.name already in the describe block, and we create only one test, we can give it a generic name.

This reduces the likelyhood to reach the erlang system limit of 255 characters in an atom.

`ExUnit.Case.register_test/4` joins the test name with the name of the describe block to build a unique name and returns it as an atom.
Since we use `scenario.name` already in the describe block, and we create only one test, we can give it a generic name.

This reduces the likelyhood to reach the [erlang system limit] of 255 characters in an atom.

[erlang system limit]: https://erlang.org/documentation/doc-5.8.4/doc/efficiency_guide/advanced.html#:~:text=Characters%20in%20an%20atom
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.

1 participant