From 4ac9e4a33930d0d166ff1db1ddc73f34b8d7d9db Mon Sep 17 00:00:00 2001 From: Asher Foa <1268088+asherf@users.noreply.github.com> Date: Sat, 30 May 2020 09:54:14 -0700 Subject: [PATCH] Run code coverage on v2 unit tests. --- build-support/bin/ci.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build-support/bin/ci.py b/build-support/bin/ci.py index 917135c3c3b3..92ed7d19d67e 100755 --- a/build-support/bin/ci.py +++ b/build-support/bin/ci.py @@ -245,11 +245,19 @@ def pants_command( *PYTEST_PASSTHRU_ARGS, ], self.v1_chroot: ["./pants.pex", "test.pytest", *sorted(targets), *PYTEST_PASSTHRU_ARGS], - self.v2_local: ["./pants.pex", "--no-v1", "--v2", "test", *sorted(targets)], + self.v2_local: [ + "./pants.pex", + "--no-v1", + "--v2", + "test", + "--use-coverage", + *sorted(targets), + ], self.v2_remote: [ "./pants.pex", *_use_remote_execution(oauth_token_path or ""), "test", + "--use-coverage", *sorted(targets), ], }[