Avoid guid at the end of outputDirectory
See original GitHub issueOn Coverlet we have some users complain about the dynamic folder name generated for reports file. I did some check on code and seem that guid is “mandatory” and not removable.
Could be useful add a parameter, maybe in runsetting like <DeterministicOutputdirectory>true/false</DeterministicOutputdirectory>
and in that case avoid to concat guid.ToString().
Dynamic folder makes CI more complex.
Issues refs https://github.com/tonerdo/coverlet/issues/500 https://github.com/tonerdo/coverlet/issues/767
cc: @DaleyKD
Issue Analytics
- State:
- Created 3 years ago
- Reactions:70
- Comments:45 (21 by maintainers)
Top Results From Across the Web
Unable to specify output directory when using VSTest ...
Unable to specify output directory when using VSTest integration? #500 ... Avoid guid at the end of outputDirectory microsoft/vstest#2378.
Read more >VS Project References Broken On Case Sensitivity of GUID
Generated GUIDs for class library projects are initially lower case with no braces. If a new project reference is added a class library...
Read more >7 Collecting Target Configuration Data
output directory :Directory to contain the generated resource files. If not specified, then the resource files are generated in the current directory.
Read more >Advanced Tab
Advanced Tab ; Patch GUID. The patch GUID is used to uniquely identify a patch package. InstallShield automatically generates a new GUID for...
Read more >Hitchhiker's Guide to Robocopy: Examples, options ... - PDQ
Will not output directory names as they are copied. /NP, No Progress - don't display percentage copied. Robocopy displays the progress of a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am right there with you. I’m not sure what genius thought an artifact directory’s name should be non-deterministic, but it’s completely ludicrous to me. Nobody has, from my reading, presented a single good argument as to why you’d want a GUID for this. I could see the argument for a timestamp, but honestly, if somebody wants their artifacts in a GUID-named folder, make them do it themselves as its a lot easier to go deterministic->random than vice-versa. I’m not sure why those who want consistency are the ones being punished.
Just stumbled upon this.
I disagree. VSTest should respect the specified
ResultsDirectory
andCoverageFileName
for data collectors and not create intermediate directories between. I can do that for loggers already so I would argue DataCollectors to behave the same:I would expect the following behavior:
ResultsDirectory
is respected without any intermediate folders in it.In this example you can even see that coverage is explicitly listed in the comment (which I took from the docs). Specifying the log file name seems to have worked in the past with the pre-coverlet code coverage collector: https://github.com/microsoft/vstest/issues/1957.