You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2022/09/28 14:10:59 UTC

[couchdb] branch main updated: Enable eunit coverage for all applications

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new ec5d19b4b Enable eunit coverage for all applications
ec5d19b4b is described below

commit ec5d19b4b460839fb6c1f23c098f5ceb9b1ca304
Author: Jay Doane <ja...@apache.org>
AuthorDate: Mon Sep 26 22:45:28 2022 -0700

    Enable eunit coverage for all applications
    
    Enable eunit test coverage for all applications via top level
    rebar.config.script, and remove redundant configuration at the
    application level.
---
 rebar.config.script           |  2 ++
 src/chttpd/rebar.config       |  4 ----
 src/couch_dist/rebar.config   |  4 ----
 src/couch_epi/rebar.config    |  4 ----
 src/couch_index/rebar.config  |  4 ----
 src/couch_log/rebar.config    |  4 ----
 src/couch_mrview/rebar.config |  4 ----
 src/couch_tests/rebar.config  |  4 ----
 src/fabric/rebar.config       | 16 ----------------
 src/jwtf/rebar.config         |  3 ---
 src/mem3/rebar.config         | 16 ----------------
 src/rexi/rebar.config         |  4 ----
 src/smoosh/rebar.config       |  4 ----
 13 files changed, 2 insertions(+), 71 deletions(-)

diff --git a/rebar.config.script b/rebar.config.script
index b0c2236bc..53e396597 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -185,6 +185,8 @@ MakeDep = fun
 end.
 
 AddConfig = [
+    {cover_enabled, true},
+    {cover_print_enabled, true},
     {require_otp_vsn, "23|24|25"},
     {deps_dir, "src"},
     {deps, lists:map(MakeDep, DepDescs ++ OptionalDeps)},
diff --git a/src/chttpd/rebar.config b/src/chttpd/rebar.config
deleted file mode 100644
index 791b035ea..000000000
--- a/src/chttpd/rebar.config
+++ /dev/null
@@ -1,4 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/couch_dist/rebar.config b/src/couch_dist/rebar.config
deleted file mode 100644
index 791b035ea..000000000
--- a/src/couch_dist/rebar.config
+++ /dev/null
@@ -1,4 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/couch_epi/rebar.config b/src/couch_epi/rebar.config
index 070a5ec9b..b8acce258 100644
--- a/src/couch_epi/rebar.config
+++ b/src/couch_epi/rebar.config
@@ -1,9 +1,5 @@
 % vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
 
-{cover_enabled, true}.
-
-{cover_print_enabled, true}.
-
 {erl_opts, [
     {platform_define, "^R16", 'pre18'},
     {platform_define, "^17", 'pre18'}]}.
diff --git a/src/couch_index/rebar.config b/src/couch_index/rebar.config
deleted file mode 100644
index 791b035ea..000000000
--- a/src/couch_index/rebar.config
+++ /dev/null
@@ -1,4 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/couch_log/rebar.config b/src/couch_log/rebar.config
deleted file mode 100644
index 791b035ea..000000000
--- a/src/couch_log/rebar.config
+++ /dev/null
@@ -1,4 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/couch_mrview/rebar.config b/src/couch_mrview/rebar.config
deleted file mode 100644
index 791b035ea..000000000
--- a/src/couch_mrview/rebar.config
+++ /dev/null
@@ -1,4 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/couch_tests/rebar.config b/src/couch_tests/rebar.config
index 8fd88bc6d..943c73f97 100644
--- a/src/couch_tests/rebar.config
+++ b/src/couch_tests/rebar.config
@@ -16,7 +16,3 @@
     {src_dirs, ["src", "setups"]}]}.
 
 {eunit_opts, [verbose]}.
-
-{cover_enabled, true}.
-
-{cover_print_enabled, true}.
diff --git a/src/fabric/rebar.config b/src/fabric/rebar.config
deleted file mode 100644
index f91d4a51b..000000000
--- a/src/fabric/rebar.config
+++ /dev/null
@@ -1,16 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-% Licensed under the Apache License, Version 2.0 (the "License"); you may not
-% use this file except in compliance with the License. You may obtain a copy of
-% the License at
-%
-%   http://www.apache.org/licenses/LICENSE-2.0
-%
-% Unless required by applicable law or agreed to in writing, software
-% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-% License for the specific language governing permissions and limitations under
-% the License.
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/jwtf/rebar.config b/src/jwtf/rebar.config
index 791b035ea..632124ac3 100644
--- a/src/jwtf/rebar.config
+++ b/src/jwtf/rebar.config
@@ -1,4 +1 @@
 % vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/mem3/rebar.config b/src/mem3/rebar.config
deleted file mode 100644
index f91d4a51b..000000000
--- a/src/mem3/rebar.config
+++ /dev/null
@@ -1,16 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-% Licensed under the Apache License, Version 2.0 (the "License"); you may not
-% use this file except in compliance with the License. You may obtain a copy of
-% the License at
-%
-%   http://www.apache.org/licenses/LICENSE-2.0
-%
-% Unless required by applicable law or agreed to in writing, software
-% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-% License for the specific language governing permissions and limitations under
-% the License.
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/rexi/rebar.config b/src/rexi/rebar.config
deleted file mode 100644
index 791b035ea..000000000
--- a/src/rexi/rebar.config
+++ /dev/null
@@ -1,4 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.
diff --git a/src/smoosh/rebar.config b/src/smoosh/rebar.config
deleted file mode 100644
index 791b035ea..000000000
--- a/src/smoosh/rebar.config
+++ /dev/null
@@ -1,4 +0,0 @@
-% vim: set ft=erlang : -*- erlang -*- % Magic lines for code editors
-
-{cover_enabled, true}.
-{cover_print_enabled, true}.