cabbage-ex / cabbage

Story BDD tool for executing elixir in ExUnit
MIT License
144 stars 34 forks source link

Remove duplication in test function name #89

Open joern-lang-studitemps opened 5 months ago

joern-lang-studitemps commented 5 months ago

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.