File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,13 @@ defmodule Mix.Tasks.Test do
6
6
Mix . shell . info "Cover compiling modules ... "
7
7
:cover . start
8
8
:cover . compile_beam_directory ( compile_path |> to_char_list )
9
+ output = opts [ :output ]
9
10
10
- if :application . get_env ( :cover , :started ) != { :ok , true } do
11
- :application . set_env ( :cover , :started , true )
12
- output = opts [ :output ]
13
-
14
- fn ( ) ->
15
- Mix . shell . info "\n Generating cover results ... "
16
- File . mkdir_p! ( output )
17
- Enum . each :cover . modules , fn ( mod ) ->
18
- :cover . analyse_to_file ( mod , '#{ output } /#{ mod } .html' , [ :html ] )
19
- end
11
+ fn ( ) ->
12
+ Mix . shell . info "\n Generating cover results ... "
13
+ File . mkdir_p! ( output )
14
+ Enum . each :cover . modules , fn ( mod ) ->
15
+ :cover . analyse_to_file ( mod , '#{ output } /#{ mod } .html' , [ :html ] )
20
16
end
21
17
end
22
18
end
You can’t perform that action at this time.
0 commit comments