diff --git a/GitVersion.yml b/GitVersion.yml index d01a188..d188d41 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,5 +1,5 @@ # This copy of GitVersion.yml is used in building the recipe package itself. -next-version: 1.2.0 +next-version: 1.2.1 mode: ContinuousDelivery legacy-semver-padding: 5 build-metadata-padding: 5 diff --git a/recipe/test-reports.cake b/recipe/test-reports.cake index 57ca1c3..6bffa45 100644 --- a/recipe/test-reports.cake +++ b/recipe/test-reports.cake @@ -3,16 +3,14 @@ public class PackageTestReport public PackageTest Test; public ActualResult Result; public ITestRunner Runner; - public List Errors; - public List Warnings; + public List Errors = new List(); + public List Warnings = new List(); public PackageTestReport(PackageTest test, ActualResult actualResult, ITestRunner runner = null) { Test = test; Result = actualResult; Runner = runner; - Errors = new List(); - Warnings = new List(); var expectedResult = test.ExpectedResult; @@ -59,9 +57,9 @@ public class PackageTestReport { Test = test; Result = null; - Errors = new List(); + Runner = runner; + Errors.Add($" {ex.Message}"); - Runner = runner; } public void Display(int index, TextWriter writer)