ExUnit provides some methods to get test result. I am not sure how to use it https://hexdocs.pm/ex_unit/ExUnit.Test.html and https://hexdocs.pm/ex_unit/ExUnit.Formatter.html.
I have multiple tests in a file. How can I generate results at the end like Test name and Status ?
I am writing test using hound. Thanks in advance.
In the first place, one can use
ExUnit.after_suite/1
for this purpose. The finest tuning might be done with introducing your own formatter and passing it toExUnit.configure/1
before a call toExUnit.start()
. Somewhat like the below (adjust to your needs.)