Skip to content

Commit

Permalink
Reflect test results from testContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid authored and Zaid committed Oct 1, 2024
1 parent 09f112c commit f8a482d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions specmatic-order-bff-csharp.test/contract/ContractTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public class ContractTests : IAsyncLifetime
public async Task ContractTestsAsync()
{
await RunContractTests();
var logs = await _testContainer.GetLogsAsync();
if (!logs.Stdout.Contains("Failures: 0"))
{
Assert.Fail("There are failing tests");
}
}

public async Task InitializeAsync()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"path": "/products?type=other",
"method": "GET"
},
"delay-in-seconds": 10,
"delay-in-seconds": 5,
"http-response": {
"status": 200,
"body": [],
Expand Down

0 comments on commit f8a482d

Please sign in to comment.