Hi,
I was looking for a way to access the test result of the failing test in
the on_exit hook and
found https://github.com/elixir-lang/elixir/issues/2969, but could not find
any follow
up.
What I am trying to achieve is to create a screenshot for each failing
browser test (e.g. using Hound), this helps in trying to understand why a
certain test failed.
Basically this could look like:
setup context do
on_exit(context, fn ->
if context.test_failed
take_screenshot("./tmp/#{context.test}.png")
end
end
:ok
end
So this something you would consider, or is there already a way to
implement this?
Thanks in advance,
Lars Vonk
--
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/cd9dfac4-d323-41bc-8c03-047dca81036b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.