I wanted a light where I might be wrong in implementing an Exception with your coverage test.
Lib used is the excoveralls.
Exception in directory lib
defmodule ExceptionTes defexception message: "new exception" end
Test in directory test
defmodule MyappWeb.ExceptionTesTest do use ExUnit.Case, async: true def my_fn do raise ExceptionTes end test "test exception" do assert_raise ExceptionTes, "new exception" , fn -> my_fn() end end end
COV FILE LINES RELEVANT MISSED
0.0% lib/exceptions/expection_tes.ex 3 0 0
What I did wrong to not have coverage on this file.