Skip to content

Commit

Permalink
pipeline update
Browse files Browse the repository at this point in the history
  • Loading branch information
RuaridhAnswer committed Dec 14, 2023
1 parent 86a69a1 commit 6e8697b
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release --no-restore -nowarn:1591

- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Run NUnit tests
run: dotnet test --no-build --configuration Release --filter FullyQualifiedName~Answer.King.IntegrationTests.Tests.AnswerKingPostOrder.ProductOrder*
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@
<ProjectReference Include="..\..\src\Answer.King.Domain\Answer.King.Domain.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="Tests\__snapshots__\" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void ProductOrder_Success(string name, string orderTotal)
[TestCase("Fail_No_Quantity_Line")]
[TestCase("Fail_No_Quantity")]
[TestCase("Fail_Negative_Quantity")]
public void FailedOrders(string name)
public void ProductOrder_Fail(string name)
{
var orderRequest = DataHelper.GetOrderData(name);

Expand All @@ -68,7 +68,7 @@ public void FailedOrders(string name)
}

[Test]
public void FailedOrder_NoBody()
public void ProductOrder_Fail_NoBody()
{
var response = (ErrorResponse)Given(this.Client)
.When()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"Errors": {
"": [
"A non-empty request body is required."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": 4,
"createdOn": "2023-12-13T14:41:20.0664133Z",
"lastUpdated": "2023-12-13T14:41:20.0665808Z",
"createdOn": "2023-12-14T14:42:34.3890478Z",
"lastUpdated": "2023-12-14T14:42:34.3892504Z",
"orderStatus": "Created",
"orderTotal": 18.97,
"lineItems": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": 4,
"createdOn": "2023-12-13T14:41:20.1602293Z",
"lastUpdated": "2023-12-13T14:41:20.1602512Z",
"createdOn": "2023-12-14T14:42:34.498567Z",
"lastUpdated": "2023-12-14T14:42:34.4985818Z",
"orderStatus": "Created",
"orderTotal": 8.97,
"lineItems": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": 4,
"createdOn": "2023-12-13T14:40:45.1890133Z",
"lastUpdated": "2023-12-13T14:40:45.1912189Z",
"createdOn": "2023-12-14T14:42:34.6058543Z",
"lastUpdated": "2023-12-14T14:42:34.6058679Z",
"orderStatus": "Created",
"orderTotal": 99.9,
"lineItems": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": 4,
"createdOn": "2023-12-13T14:41:19.663364Z",
"lastUpdated": "2023-12-13T14:41:19.6673243Z",
"createdOn": "2023-12-14T14:42:34.2471198Z",
"lastUpdated": "2023-12-14T14:42:34.2471326Z",
"orderStatus": "Created",
"orderTotal": 5.99,
"lineItems": [
Expand Down

0 comments on commit 6e8697b

Please sign in to comment.