Browse Source

Update Python and JS test coverage collection to exclude tests

Thibaud Colas 4 years ago
parent
commit
314a926f75
2 changed files with 5 additions and 0 deletions
  1. 1 0
      .coveragerc
  2. 4 0
      package.json

+ 1 - 0
.coveragerc

@@ -6,6 +6,7 @@ source = wagtail
 
 omit =
     */migrations/*
+    */tests/*
     docs/conf.py
 
 

+ 4 - 0
package.json

@@ -44,6 +44,10 @@
       "/node_modules/",
       "/build/"
     ],
+    "coveragePathIgnorePatterns": [
+      "/node_modules/",
+      "/tests/"
+    ],
     "setupFiles": [
       "./client/tests/adapter.js",
       "./client/tests/stubs.js",