[X] I have verified this is the correct repository for opening this issue.
[X] I have verified no other issues exist related to my problem.
[X] I have verified this is not an issue for a specific package.
[X] I have verified this issue is not security related.
[X] I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
When running the build.bat for a project that is using .NET Core, the dependency tree is not set up correctly when it comes to the unit testing steps. The end result is the attempt to upload test results to TeamCity happens before the unit tests have been completed. As a result, the test results and also the test coverage if there is any, doesn't end up in the correct place.
What is Expected?
The required dependencies should be run, in the correct order, to ensure that all the necessary tasks are completed as part of the build.
How Did You Get This To Happen?
On a project that is using Chocolatey.Cake.Recipe and makes use of RunDotNet run the build.bat file
This will run the build
Assuming that it runs to completion, look at all the Tasks that were run
See that the tasks to do "things" with the test results happens before the test results have been generated
Checklist
What You Are Seeing?
When running the
build.bat
for a project that is using .NET Core, the dependency tree is not set up correctly when it comes to the unit testing steps. The end result is the attempt to upload test results to TeamCity happens before the unit tests have been completed. As a result, the test results and also the test coverage if there is any, doesn't end up in the correct place.What is Expected?
The required dependencies should be run, in the correct order, to ensure that all the necessary tasks are completed as part of the build.
How Did You Get This To Happen?
System Details
Installed Packages
Output Log
Additional Context
N/A