chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Dependency graph is incorrect when running DotNetTest #122

Closed gep13 closed 10 months ago

gep13 commented 10 months ago

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?

  1. On a project that is using Chocolatey.Cake.Recipe and makes use of RunDotNet run the build.bat file
  2. This will run the build
  3. Assuming that it runs to completion, look at all the Tasks that were run
  4. See that the tasks to do "things" with the test results happens before the test results have been generated

System Details

Installed Packages

N/A

Output Log

N/A

Additional Context

N/A

choco-bot commented 10 months ago

:tada: This issue has been resolved in version 0.24.1 :tada:

The release is available on:

Your GitReleaseManager bot :package::rocket: