Skip to content

Commit

Permalink
Merge pull request #47 from ballerina-platform/codecov
Browse files Browse the repository at this point in the history
Generate codecoverage
  • Loading branch information
niveathika authored May 29, 2024
2 parents e11fcad + fbfa80a commit 09aa7ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions edi-tools-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions edi-tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 09aa7ea

Please sign in to comment.