From 5144ece8648e557d7c886456eadc291ae2440c3f Mon Sep 17 00:00:00 2001 From: Asher Foa Date: Wed, 8 Jul 2020 20:17:35 -0700 Subject: [PATCH] Run code coverage on v2 unit tests. (#9919) ### Problem V2 pytest code coverage doesn't have enough tests so it is fragile. ### Solution Long term we should have tests, but for now, just enabling it and dogfooding it will expose issues. ### Result Helps to prevent regressions like: #9914. #10299 follows up to send this somewhere. --- pants.travis-ci.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pants.travis-ci.toml b/pants.travis-ci.toml index c84cd9e1c69..57103c23bd0 100644 --- a/pants.travis-ci.toml +++ b/pants.travis-ci.toml @@ -20,3 +20,9 @@ process_execution_local_parallelism = "%(travis_parallelism)s" [python-setup] # TODO: See https://github.com/pantsbuild/pants/issues/9964 resolver_jobs = 2 + +[test] +use_coverage = true + +[coverage-py] +report=["raw"] \ No newline at end of file