Skip to content

Commit

Permalink
Add test case run id field generated from run id and test case unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
Jandini committed Oct 14, 2023
1 parent 4f17973 commit d29a293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/KiBoards.Xunit/Models/KiBoardsTestCaseRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
{
class KiBoardsTestCaseRun
{
public string Id { get; internal set; }
public TestRun TestRun { get; set; }
public KiBoardsTestCase TestCase { get; set; }
public KiBoardsTestCaseRunSkipped Skipped { get; set; }
public KiBoardsTestCaseRunFailed Failed { get; set; }
public decimal ExecutionTime { get; set; }
public string Status { get; set; }
public string Output { get; set; }
public string Output { get; set; }
}
}
1 change: 1 addition & 0 deletions src/KiBoards.Xunit/Services/KiBoardsTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public async Task IndexTestCaseRunAsync(ITestResultMessage testResult)
{
await _elasticService.IndexDocumentAsync(new KiBoardsTestCaseRun()
{
Id = (TestFramework.TestRun.Id + testResult.TestCase.UniqueID).ComputeMD5(),
TestRun = TestFramework.TestRun,
ExecutionTime = testResult.ExecutionTime,
Output = testResult.Output,
Expand Down

0 comments on commit d29a293

Please sign in to comment.