We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef106af commit 29414b2Copy full SHA for 29414b2
build/build.fsx
@@ -196,7 +196,11 @@ Target "TestNet45" (fun _ ->
196
Target "TestNetStandard15" (fun _ ->
197
for project in dotNetTestProjects do
198
DotnetRestore id project
199
- let args = sprintf "test %s" project
+ let traitArg =
200
+ match getBuildParamOrDefault "Category" "" with
201
+ | "" -> ""
202
+ | category -> sprintf "-trait \"Category=%s\"" category
203
+ let args = sprintf "test %s %s" project traitArg
204
let result = Dotnet DotnetOptions.Default args
205
if not result.OK then failwithf "dotnet test failed with code %i" result.ExitCode
206
)
0 commit comments