Hi.
I’m trying to get better coverage for a project at work but mix test --cover
keeps crashing
Erlang: 27.3
Elixir 1.18.3
$ mix test --cover
...
100.00% | ProjectWeb.Dashboard
100.00% | ProjectWeb.Endpoint
100.00% | ProjectWeb.ErrorJSON
100.00% | ProjectWeb.Gettext
-----------|--------------------------
14.84% | Total
Coverage test failed, threshold not met:
Coverage: 14.84%
Threshold: 90.00%
** (EXIT from #PID<0.94.0>) {:file, ~c"cover/Elixir.Project.AuthOverrides.html", :emfile}
Everytime I rerun the test it will crash and output a new file. After a couple of tries it outputs this instead
...
14.84% | Total
Coverage test failed, threshold not met:
Coverage: 14.84%
Threshold: 90.00%
Runtime terminating during boot ({undef,[{'Elixir.Inspect.Tuple',inspect,[{file,"/Users/evikstrom/src/tv4/playback3/test/support/conn_case.ex",emfile},#{safe=>true,base=>decimal,limit=>50,width=>80,'__struct__'=>'Elixir.Inspect.Opts',pretty=>false,syntax_colors=>[],charlists=>infer,binaries=>infer,char_lists=>infer,custom_options=>[],inspect_fun=>fun 'Elixir.Inspect':inspect/2,printable_limit=>4096,structs=>true}],[]},{'Elixir.Kernel',inspect,2,[{file,"lib/kernel.ex"},{line,2376}]},{'Elixir.Exception',format_banner,3,[{file,"lib/exception.ex"},{line,148}]},{'Elixir.Kernel.CLI',format_error,3,[{file,"lib/kernel/cli.ex"},{line,108}]},{'Elixir.Kernel.CLI',print_error,3,[{file,"lib/kernel/cli.ex"},{line,178}]},{'Elixir.Kernel.CLI',exec_fun,2,[{file,"lib/kernel/cli.ex"},{line,166}]},{'Elixir.Kernel.CLI',run,1,[{file,"lib/kernel/cli.ex"},{line,55}]},{init,start_it,1,[]},{init,start_em,1,[]},{init,do_boot,3,[]}]})
I have tries to switch Elixir and Erlang versions to no success.
Do anyone know what I’m doing wrong here?