From 8387cd10de998e046f960a221a51a4ce60f92453 Mon Sep 17 00:00:00 2001 From: Larry Rensing Date: Wed, 30 Mar 2016 17:59:23 +0000 Subject: [PATCH] Update .coveragerc to ignore abstract methods Due to importing modules rather than functions and decorators directly, @abc.abstract and 'raise NotImplementedError' were added to the .coveragerc file. Since abstract methods are not testable, this will give us a more accurate representation of our coverage. Change-Id: Id5ed5e1f5e142d10f41ad18d20228399226ec20d Co-Authored-By: Jin Li Closes-Bug: #1563717 --- .coveragerc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 55a39d54f..243e0228c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,6 +4,7 @@ source = watcher omit = watcher/tests/* [report] -ignore_errors = True +ignore_errors = True exclude_lines = - @abstract + @abc.abstract + raise NotImplementedError