-
Notifications
You must be signed in to change notification settings - Fork 386
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
A default value for the CoverletOutput MSBuild property #152
Comments
@alexanderkozlenko - why did you close this issue? I fully agree with your reasoning above - the default value shouldn't be in the source directory for a project. All the outputs should be directed to output folders. |
@alexanderkozlenko I definitely see the sense in what you're proposing. My reasoning around the default location of the results is simply because it becomes much easier to find especially since Visual Studio (and possibly other IDEs) doesn't show the contents of the output folders in the Solution Explorer |
@tonerdo - you could follow that same reasoning for any output file. The build Writing to the "source" directory of a project during the build is generally frowned upon. One reason is that people need to add a specific I would imagine most projects would need/want to change this default, which doesn't make it a very good default in my opinion. |
I assume another possible option for the output path might be the usage of |
@alexanderkozlenko what path does |
@tonerdo, AFAIK the default path depends on the exact test framework used and is provided by |
@vagisha-nidhi can you tell us where/how vs test "calculate" output path for coverage on collectors?We could align with it. |
Now we support
Yep also vstest write results to For the moment doesn't seem a great issue, I mean we have a way to solve and also I don't know if follow test frameworks "defaults"(not only ms for instance) is a good solution for future. |
I assume that a default value for the
CoverletOutput
property should not be the$(MSBuildProjectDirectory)
but the$(OutputPath)
. Here are a few reasons why this is a more appropriate value:#if
directives). And thus, the value of$(OutputPath)
can automatically store reports in different folders without overwriting since it evaluates to the$(BaseOutputPath)\$(Configuration)\
by default.The text was updated successfully, but these errors were encountered: