~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to src/ConsoleRunner/nunit-console/ConsoleUi.cs

  • Committer: Charlie Poole
  • Date: 2011-04-03 02:57:17 UTC
  • mfrom: (3305.1.2 work)
  • Revision ID: charlie@nunit.org-20110403025717-5qth4w4wmmqx37u1
MergeĀ fromĀ main

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
                    else
152
152
                    {
153
153
                        WriteSummaryReport(summary);
154
 
                        if (summary.ErrorsAndFailures > 0)
 
154
                        if (summary.ErrorsAndFailures > 0 || result.IsError || result.IsFailure)
155
155
                            WriteErrorsAndFailuresReport(result);
156
156
                        if (summary.TestsNotRun > 0)
157
157
                            WriteNotRunReport(result);
283
283
            {
284
284
                if (result.HasResults)
285
285
                {
286
 
                    if ( (result.IsFailure || result.IsError) && result.FailureSite == FailureSite.SetUp)
287
 
                        WriteSingleResult(result);
 
286
                    if (result.IsFailure || result.IsError)
 
287
                        if (result.FailureSite == FailureSite.SetUp || result.FailureSite == FailureSite.TearDown)
 
288
                            WriteSingleResult(result);
288
289
 
289
290
                    foreach (TestResult childResult in result.Results)
290
291
                        WriteErrorsAndFailures(childResult);