-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable code coverage for ant, maven and gradle #1728
Conversation
tr.setInput('javaHomeSelection', 'JDKVersion'); | ||
tr.setInput('jdkVersion', 'default'); | ||
tr.setInput('testResultsFiles', '**/TEST-*.xml'); | ||
tr.setInput('codeCoverageTool', 'Cobertura'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indention
@@ -1,15 +1,18 @@ | |||
/// <reference path="../../definitions/vsts-task-lib.d.ts" /> | |||
|
|||
import tl = require('vsts-task-lib/task'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copyright info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed
var sourceDirectories = tl.getInput('srcDirectories'); | ||
// appending with small guid to keep it unique. Avoiding full guid to ensure no long path issues. | ||
var reportDirectoryName = "CCReport43F6D5EF"; | ||
reportDirectory = path.join(buildRootPath, reportDirectoryName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hardcoded directory names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explained offline
}, | ||
"gradlew properties": { | ||
"code": 0, | ||
"stdout": "Something subprojects", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subprojects []
var reportPOMFile = null; | ||
var execFileJacoco = null; | ||
var ccReportTask = null; | ||
enableCodeCoverage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add type information to the above vars?
var summaryFile: string = null;
} | ||
} | ||
|
||
function isFileExists(path: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For clarity, this method should be named pathExistsAsFile()
.
Thank you for adding the L0 tests! |
Testing : unit tests, Manual testing. Ran all e2e tests against coreclr agent .