Takeru Ohta 3 лет назад
Родитель
Сommit
0312824ea8
2 измененных файлов с 5 добавлено и 8 удалено
  1. 1 1
      .github/workflows/ci.yml
  2. 4 7
      rebar.config

+ 1 - 1
.github/workflows/ci.yml

@@ -23,7 +23,7 @@ jobs:
       - run: rebar3 dialyzer
       - run: rebar3 edoc
       - run: rebar3 cover
-      - run: rebar3 as test covertool generate
+      - run: rebar3 covertool generate
       - run: cp _build/test/covertool/jsone.covertool.xml ./cobertura.xml
   cov:
     needs: ci

+ 4 - 7
rebar.config

@@ -15,8 +15,6 @@
 
 {clean_files, [".eunit/*", "ebin/*.beam"]}.
 
-{cover_enabled, true}.
-
 {edoc_opts, [
              {dialyzer_specs, all},
              {report_missing_type, true},
@@ -49,10 +47,9 @@
      [
       edown
      ]}
-   ]},
-  {test,
-   [
-    {erl_opts, [debug_info]},
-    {project_plugins, [covertool]}
    ]}
  ]}.
+
+{project_plugins, [covertool]}.
+{cover_export_enabled, true}.
+{covertool, [{coverdata_files, ["ct.coverdata", "eunit.coverdata"]}]}.