any thoughts on terms such as given/when. I'm not a fan of cucumber, but I
do think these could easily replace describe/context and even read a bit
better.
given "String.capitalize/2" do
setup :set_test_string
when "whatever state/flag/condition we want to test" do
test "capitalizes the first letter", context do
assert "T" <> _ = context.test_string
end
end
end
On Monday, May 30, 2016 at 6:18:55 AM UTC-4, José Valim wrote:
>
> Not a huge fan of group/bundle - still very much like describe/context.
>> `describe` for `describe "MyModule.fun"` and context for `context
>> "admin"`.
>>
>
> After following my own advice and using "bundle" for a couple days I have
> really struggled to write good "bundle" names and make them read cleanly
> alongside my test definitions.
>
> I will soon push a commit to master that gives "describe" a try. We don't
> plan to support both describe and context though and context is a no-go for
> the other reasons stated earlier.
>
> Thank you Tobi,
>
>
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/60fb9441-cf9b-449b-b83b-46e107fb1be6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.