-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add number of passed tests to test run summary
- Loading branch information
Showing
5 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using KiBoards.Models; | ||
using Nest; | ||
using Nest; | ||
using Xunit.Abstractions; | ||
using Xunit.Sdk; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace KiBoards | ||
{ | ||
class TestRunSummary | ||
{ | ||
/// <summary> | ||
/// The total number of tests run. | ||
/// </summary> | ||
public int Total { get; internal set; } | ||
|
||
/// <summary> | ||
/// The number of failed tests. | ||
/// </summary> | ||
public int Failed { get; internal set; } | ||
|
||
/// <summary> | ||
/// The number of skipped tests. | ||
/// </summary> | ||
public int Skipped { get; internal set; } | ||
|
||
/// <summary> | ||
/// Compute number of passed tests | ||
/// </summary> | ||
public int Passed { get => Total - Failed - Skipped; } | ||
|
||
/// <summary> | ||
/// The total time taken to run the tests, in seconds. | ||
/// </summary> | ||
public decimal Time { get; internal set; } | ||
} | ||
} |