IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Helper class used to summarize the result of a test run More...
Public Member Functions | |
ResultSummary (ITestResult result) | |
Initializes a new instance of the ResultSummary class. More... | |
Properties | |
int | TestCount [get, private set] |
Gets the number of test cases for which results have been summarized. Any tests excluded by use of Category or Explicit attributes are not counted. More... | |
int | RunCount [get] |
Returns the number of test cases actually run. More... | |
int | NotRunCount [get] |
Gets the number of tests not run for any reason. More... | |
int | PassCount [get, private set] |
Gets the count of passed tests More... | |
int | FailureCount [get, private set] |
Gets count of failed tests, excluding errors and invalid tests More... | |
int | ErrorCount [get, private set] |
Gets the error count More... | |
int | InconclusiveCount [get, private set] |
Gets the count of inconclusive tests More... | |
int | InvalidCount [get, private set] |
Returns the number of test cases that were not runnable due to errors in the signature of the class or method. Such tests are also counted as Errors. More... | |
int | SkipCount [get, private set] |
Gets the count of skipped tests, excluding ignored tests More... | |
int | IgnoreCount [get, private set] |
Gets the ignore count More... | |
int | ExplicitCount [get, private set] |
Gets the explicit count More... | |
ResultState | ResultState [get, private set] |
Gets the ResultState of the test result, which indicates the success or failure of the test. More... | |
DateTime | StartTime [get, private set] |
Gets or sets the time the test started running. More... | |
DateTime | EndTime [get, private set] |
Gets or sets the time the test finished running. More... | |
double | Duration [get, private set] |
Gets or sets the elapsed time for running the test in seconds More... | |
Private Member Functions | |
void | InitializeCounters () |
void | Summarize (ITestResult result) |
Helper class used to summarize the result of a test run
|
inline |
Initializes a new instance of the ResultSummary class.
result | The result. |
References NUnit.Framework.Interfaces.ITestResult.Duration, NUnitLite.ResultSummary.Duration, NUnit.Framework.Interfaces.ITestResult.EndTime, NUnitLite.ResultSummary.EndTime, NUnitLite.ResultSummary.InitializeCounters(), NUnit.Framework.Interfaces.ITestResult.ResultState, NUnit.Framework.Interfaces.ITestResult.StartTime, NUnitLite.ResultSummary.StartTime, and NUnitLite.ResultSummary.Summarize().
|
inlineprivate |
References NUnitLite.ResultSummary.ErrorCount, NUnitLite.ResultSummary.ExplicitCount, NUnitLite.ResultSummary.FailureCount, NUnitLite.ResultSummary.IgnoreCount, NUnitLite.ResultSummary.InconclusiveCount, NUnitLite.ResultSummary.InvalidCount, NUnitLite.ResultSummary.PassCount, NUnitLite.ResultSummary.SkipCount, and NUnitLite.ResultSummary.TestCount.
Referenced by NUnitLite.ResultSummary.ResultSummary().
|
inlineprivate |
References NUnit.Framework.Interfaces.ITestResult.Children, NUnitLite.ResultSummary.ErrorCount, NUnitLite.ResultSummary.ExplicitCount, NUnitLite.ResultSummary.FailureCount, NUnitLite.ResultSummary.IgnoreCount, NUnitLite.ResultSummary.InconclusiveCount, NUnitLite.ResultSummary.InvalidCount, NUnit.Framework.Interfaces.ITest.IsSuite, NUnit.Framework.Interfaces.ResultState.Label, NUnitLite.ResultSummary.PassCount, NUnit.Framework.Interfaces.ITestResult.ResultState, NUnitLite.ResultSummary.SkipCount, NUnit.Framework.Interfaces.ResultState.Status, NUnit.Framework.Interfaces.ITestResult.Test, and NUnitLite.ResultSummary.TestCount.
Referenced by NUnitLite.ResultSummary.ResultSummary().
|
getprivate set |
Gets the number of test cases for which results have been summarized. Any tests excluded by use of Category or Explicit attributes are not counted.
Referenced by NUnitLite.ResultSummary.InitializeCounters(), NUnitLite.NUnit2XmlOutputWriter.InitializeXmlFile(), and NUnitLite.ResultSummary.Summarize().
|
get |
Returns the number of test cases actually run.
Referenced by NUnitLite.TextUI.DisplaySummaryReport().
|
get |
Gets the number of tests not run for any reason.
Referenced by NUnitLite.TextUI.DisplaySummaryReport().
|
getprivate set |
Gets the count of passed tests
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), NUnitLite.ResultSummary.InitializeCounters(), and NUnitLite.ResultSummary.Summarize().
|
getprivate set |
Gets count of failed tests, excluding errors and invalid tests
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), NUnitLite.ResultSummary.InitializeCounters(), NUnitLite.NUnit2XmlOutputWriter.InitializeXmlFile(), NUnitLite.TextRunner.RunTests(), and NUnitLite.ResultSummary.Summarize().
|
getprivate set |
|
getprivate set |
Gets the count of inconclusive tests
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), NUnitLite.ResultSummary.InitializeCounters(), NUnitLite.NUnit2XmlOutputWriter.InitializeXmlFile(), and NUnitLite.ResultSummary.Summarize().
|
getprivate set |
Returns the number of test cases that were not runnable due to errors in the signature of the class or method. Such tests are also counted as Errors.
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), NUnitLite.ResultSummary.InitializeCounters(), NUnitLite.NUnit2XmlOutputWriter.InitializeXmlFile(), NUnitLite.TextRunner.RunTests(), and NUnitLite.ResultSummary.Summarize().
|
getprivate set |
Gets the count of skipped tests, excluding ignored tests
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), NUnitLite.ResultSummary.InitializeCounters(), NUnitLite.NUnit2XmlOutputWriter.InitializeXmlFile(), NUnitLite.TextRunner.ReportResults(), and NUnitLite.ResultSummary.Summarize().
|
getprivate set |
|
getprivate set |
Gets the explicit count
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), NUnitLite.ResultSummary.InitializeCounters(), NUnitLite.TextRunner.ReportResults(), and NUnitLite.ResultSummary.Summarize().
|
getprivate set |
Gets the ResultState of the test result, which indicates the success or failure of the test.
Referenced by NUnitLite.TextUI.DisplaySummaryReport().
|
getprivate set |
Gets or sets the time the test started running.
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), and NUnitLite.ResultSummary.ResultSummary().
|
getprivate set |
Gets or sets the time the test finished running.
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), and NUnitLite.ResultSummary.ResultSummary().
|
getprivate set |
Gets or sets the elapsed time for running the test in seconds
Referenced by NUnitLite.TextUI.DisplaySummaryReport(), and NUnitLite.ResultSummary.ResultSummary().