You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this is the correct repository for opening this issue.
I have verified no other issues exist related to my problem.
I have verified this is not an issue for a specific package.
I have verified this issue is not security related.
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
System Details
Operating System: 10
Windows PowerShell version: 5.1.19041.3031
Chocolatey CLI Version: 2.2.2
Chocolatey Licensed Extension version: N/A
Chocolatey License type: N/A
Terminal/Emulator: PowerShell
Installed Packages
N/A
Output Log
N/A
Additional Context
N/A
The text was updated successfully, but these errors were encountered:
gep13
added
the
Bug
Issues where something has happened which was not expected or intended
label
Sep 1, 2023
When running a project via .NET Core, the dependency graph wasn't being
setup properly when it comes to unit testing. The end results was that
tasks were running to act on the results of the unit tests, when the
unit tests hadn't actually been run yet.
This commit address this problem by ensuring that all dependencies are
in place, similar to how they are done when it is being run under full
.NET Framework.
* hotfix/0.24.1:
(#119) Change dependencies are run time
(maint) Add information messages to help debug
(maint) Correct whitespace lines
(maint) Output the Test Directory from parameters
(#122) Fix dependency graph for unit testing
* master:
(#119) Change dependencies are run time
(maint) Add information messages to help debug
(maint) Correct whitespace lines
(maint) Output the Test Directory from parameters
(#122) Fix dependency graph for unit testing
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
The text was updated successfully, but these errors were encountered: