From a794daf34edc4a3fab37e043414d718300e84dad Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Wed, 18 Mar 2020 14:31:30 +0100 Subject: [PATCH] use colcon option for pytest coverage Signed-off-by: Mikael Arguedas --- dist/index.js | 4 ++-- src/action-ros-ci.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index e9e9469fe..844677e1f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4976,7 +4976,7 @@ function run() { ignoreReturnCode: true }); const colconTestCmd = `colcon test --event-handlers console_cohesion+ \ - --pytest-args --cov=. --cov-report=xml --return-code-on-test-failure \ + --pytest-with-coverage --return-code-on-test-failure \ --packages-select ${packageNameList.join(" ")} \ ${extra_options.join(" ")}`; yield execBashCommand(colconTestCmd, commandPrefix, options); @@ -26623,4 +26623,4 @@ function onceStrict (fn) { /***/ }) -/******/ }); \ No newline at end of file +/******/ }); diff --git a/src/action-ros-ci.ts b/src/action-ros-ci.ts index fea693c01..3f35c96ac 100644 --- a/src/action-ros-ci.ts +++ b/src/action-ros-ci.ts @@ -250,7 +250,7 @@ async function run() { }); const colconTestCmd = `colcon test --event-handlers console_cohesion+ \ - --pytest-args --cov=. --cov-report=xml --return-code-on-test-failure \ + --pytest-with-coverage --return-code-on-test-failure \ --packages-select ${packageNameList.join(" ")} \ ${extra_options.join(" ")}`; await execBashCommand(colconTestCmd, commandPrefix, options);