-
Notifications
You must be signed in to change notification settings - Fork 385
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
Coverage output file name #378
Comments
At the moment AFAIK no but the idea is not bad /cc @tonerdo |
<Target Name="SetCoverletOutputProperty"
BeforeTargets="GenerateCoverageResult">
<PropertyGroup>
<CoverletOutput>$(VSTestResultsDirectory)\$(MSBuildProjectName).CodeCoverage_$([System.DateTime]::UtcNow.ToString("yyyy-MM-dd_HH_mm_ss_fff")).xml</CoverletOutput>
</PropertyGroup>
</Target> |
I like this idea, but I'm afraid it'll break existing build scripts that expect a predictable output file name |
By default, we generate output file name as it is now. May be add a new command line option? An option like "--output -uf" means we generate unique file name (CodeCoverage_timestamp). |
Maybe ... --output "/custom/path/result.json" --output-includetimestamp --output-timestampformat yyyy-MM-dd_HH_mm_ss_fff To produce |
@tonerdo @andreacassioli @alexanderkozlenko our great contributor @daveMueller started to work on this, I would like to know if we are in agreement with switches! |
Moved to discussion #1254 |
Is there a way to set the output file name so that it will include the project name and a timestamp, pretty much as standard unit test trx files? I cannot find any mention of this.
The text was updated successfully, but these errors were encountered: