Skip to content

dotnetcoretest #4112

Answered by pascalberger
TerryChan2 asked this question in Q&A
Jan 26, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

If you're able to run your tests with dotnet test you can use the .NET test aliases which are shipped as part of Cake.

DotNetCoreTest from Cake.Incubator internally calls this alias while providing a settings object specific to XUnit which is passed as arguments (see https://github.com/cake-contrib/Cake.Incubator/blob/develop/src/Cake.Incubator/DotNetCoreTestExtensions.cs#L54). If you require these parameters you can also pass them yourself to DotNetTest using the overload which accepts a ProcessArgumentBuilder: https://cakebuild.net/api/Cake.Common.Tools.DotNet/DotNetAliases/E12827F8

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TerryChan2
Comment options

Answer selected by pascalberger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants