Skip to content

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