Skip to content

Commit

Permalink
Update pipeline tests
Browse files Browse the repository at this point in the history
  • Loading branch information
svanharmelen committed Jul 20, 2023
1 parent 2ac3eea commit 7e3c23c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
15 changes: 11 additions & 4 deletions pipelines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,19 @@ func TestGetPipelineTestReport(t *testing.T) {
Name: "Error testcase 2",
Classname: "MyClass",
ExecutionTime: 19.984,
SystemOutput: map[string]interface{}{
"message": "Failed test",
"type": "MultipleExceptionError",
},
},
{
Status: "error",
Name: "Error testcase 3",
Classname: "MyClass",
SystemOutput: "Failed test",
Status: "error",
Name: "Error testcase 3",
Classname: "MyClass",
SystemOutput: []interface{}{
"Failed test a",
"Failed test b",
},
},
{
Status: "success",
Expand Down
7 changes: 5 additions & 2 deletions testdata/get_pipeline_testreport.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
"classname": "MyClass",
"file": null,
"execution_time": 19.984,
"system_output": null,
"system_output": {
"message": "Failed test",
"type": "MultipleExceptionError"
},
"stack_trace": null,
"attachment_url": null,
"recent_failures": null
Expand All @@ -47,7 +50,7 @@
"classname": "MyClass",
"file": null,
"execution_time": 0.0,
"system_output": "Failed test"
"system_output": ["Failed test a", "Failed test b"]
},
{
"status": "success",
Expand Down

0 comments on commit 7e3c23c

Please sign in to comment.