From fbfa80a100e4a682740a9efa1d1fd6bafbf6e92d Mon Sep 17 00:00:00 2001 From: Niveathika Date: Wed, 29 May 2024 09:34:54 +0530 Subject: [PATCH] Generate codecoverage --- edi-tools-tests/build.gradle | 4 ++-- edi-tools/build.gradle | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/edi-tools-tests/build.gradle b/edi-tools-tests/build.gradle index f119ab4..cbe97bd 100644 --- a/edi-tools-tests/build.gradle +++ b/edi-tools-tests/build.gradle @@ -64,9 +64,9 @@ task runTests { // Run tests for each sample exec { if (Os.isFamily(Os.FAMILY_WINDOWS)) { - commandLine 'cmd', "/c", 'bal test' + commandLine 'cmd', "/c", 'bal test --code-coverage --coverage-format=xml' } else { - commandLine 'sh', "-c", 'bal test' + commandLine 'sh', "-c", 'bal test --code-coverage --coverage-format=xml' } } } catch (Exception e) { diff --git a/edi-tools/build.gradle b/edi-tools/build.gradle index 3ccce8b..133c401 100644 --- a/edi-tools/build.gradle +++ b/edi-tools/build.gradle @@ -72,9 +72,9 @@ task test{ // Run tests for each sample exec { if (Os.isFamily(Os.FAMILY_WINDOWS)) { - commandLine 'cmd', "/c", 'bal test' + commandLine 'cmd', "/c", 'bal test --code-coverage --coverage-format=xml' } else { - commandLine 'sh', "-c", 'bal test' + commandLine 'sh', "-c", 'bal test --code-coverage --coverage-format=xml' } } } catch (Exception e) {