mirror of
https://github.com/valitydev/yamerl.git
synced 2024-11-06 10:55:16 +00:00
Write .percent file even if module isn't tested
This file is used by cover_to_html.sh.
This commit is contained in:
parent
3b0bb7abb3
commit
e4bd9de170
@ -56,12 +56,15 @@ print_coverage2(Cover_To_Html, [Mod | Rest]) ->
|
||||
if
|
||||
Cov > 0 andalso Not_Cov > 0 ->
|
||||
file:write_file("cover_" ?MODULE_STRING "_" ++ Mod_S ++ ".percent",
|
||||
list_to_binary(io_lib:format("~.1f",
|
||||
list_to_binary(io_lib:format("~.1f~n",
|
||||
[Cov * 100 / (Cov + Not_Cov)]))),
|
||||
io:format(standard_error, " - ~s: ~.1f%~n",
|
||||
[Mod, Cov * 100 / (Cov + Not_Cov)]);
|
||||
true ->
|
||||
io:format(standard_error, " - ~s: n/a~n~n", [Mod])
|
||||
file:write_file("cover_" ?MODULE_STRING "_" ++ Mod_S ++ ".percent",
|
||||
list_to_binary(io_lib:format("0.0~n",
|
||||
[]))),
|
||||
io:format(standard_error, " - ~s: n/a~n", [Mod])
|
||||
end,
|
||||
cover:analyse_to_file(Mod,
|
||||
"cover_" ?MODULE_STRING "_" ++ Mod_S ++ ".out", []),
|
||||
|
Loading…
Reference in New Issue
Block a user