@@ -38,26 +38,28 @@ Task("Build")
38
38
39
39
Task ( "Test" )
40
40
. Description ( "Runs unit tests and outputs test results to the artefacts directory." )
41
- . DoesForEach ( GetFiles ( "./Tests/**/*.csproj" ) , project =>
42
- {
43
- DotNetTest (
44
- project . ToString ( ) ,
45
- new DotNetTestSettings ( )
46
- {
47
- Blame = true ,
48
- Collectors = new string [ ] { "Code Coverage" , "XPlat Code Coverage" } ,
49
- Configuration = configuration ,
50
- Loggers = new string [ ]
41
+ . DoesForEach (
42
+ GetFiles ( "./Tests/**/*.csproj" ) ,
43
+ project =>
44
+ {
45
+ DotNetTest (
46
+ project . ToString ( ) ,
47
+ new DotNetTestSettings ( )
51
48
{
52
- $ "trx;LogFileName={ project . GetFilenameWithoutExtension ( ) } .trx",
53
- $ "junit;LogFileName={ project . GetFilenameWithoutExtension ( ) } .xml",
54
- $ "html;LogFileName={ project . GetFilenameWithoutExtension ( ) } .html",
55
- } ,
56
- NoBuild = true ,
57
- NoRestore = true ,
58
- ResultsDirectory = artefactsDirectory ,
59
- } ) ;
60
- } ) ;
49
+ Blame = true ,
50
+ Collectors = new string [ ] { "Code Coverage" , "XPlat Code Coverage" } ,
51
+ Configuration = configuration ,
52
+ Loggers = new string [ ]
53
+ {
54
+ $ "trx;LogFileName={ project . GetFilenameWithoutExtension ( ) } .trx",
55
+ $ "junit;LogFileName={ project . GetFilenameWithoutExtension ( ) } .xml",
56
+ $ "html;LogFileName={ project . GetFilenameWithoutExtension ( ) } .html",
57
+ } ,
58
+ NoBuild = true ,
59
+ NoRestore = true ,
60
+ ResultsDirectory = artefactsDirectory ,
61
+ } ) ;
62
+ } ) ;
61
63
62
64
Task ( "Pack" )
63
65
. Description ( "Creates NuGet packages and outputs them to the artefacts directory." )
0 commit comments