From a106bcd3bad7b89300a4efb942e0b2c2c9b90909 Mon Sep 17 00:00:00 2001 From: Daniel Clarke Date: Wed, 17 Jul 2024 16:32:14 +0100 Subject: [PATCH] testing removing the solution name + introducing a failing test --- .github/actions/run-unit-tests/action.yml | 2 +- .../Mocks/MockContentfulServiceTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/run-unit-tests/action.yml b/.github/actions/run-unit-tests/action.yml index 96b4d11fc..3b9c08553 100644 --- a/.github/actions/run-unit-tests/action.yml +++ b/.github/actions/run-unit-tests/action.yml @@ -12,7 +12,7 @@ runs: steps: - name: Test shell: bash - run: dotnet test ${{ inputs.solution_filename }} --no-restore --verbosity normal --collect:"XPlat Code Coverage" --settings coverlet.runsettings --results-directory ./coverage || true + run: dotnet test --no-restore --verbosity normal --collect:"XPlat Code Coverage" --settings coverlet.runsettings --results-directory ./coverage || true - name: Code Coverage Summary Report uses: irongut/CodeCoverageSummary@v1.3.0 diff --git a/tests/Dfe.EarlyYearsQualification.UnitTests/Mocks/MockContentfulServiceTests.cs b/tests/Dfe.EarlyYearsQualification.UnitTests/Mocks/MockContentfulServiceTests.cs index e7ada942a..c5adf129d 100644 --- a/tests/Dfe.EarlyYearsQualification.UnitTests/Mocks/MockContentfulServiceTests.cs +++ b/tests/Dfe.EarlyYearsQualification.UnitTests/Mocks/MockContentfulServiceTests.cs @@ -140,7 +140,7 @@ public async Task GetRadioQuestionPage_PassInWhereWasTheQualificationAwarded_Ret result.CtaButtonText.Should().NotBeNullOrEmpty(); result.ErrorMessage.Should().NotBeNullOrEmpty(); result.Options.Should().NotBeNullOrEmpty(); - result.Options.Count.Should().Be(5); + result.Options.Count.Should().Be(4); result.Options[0].Label.Should().Be("England"); result.Options[0].Value.Should().Be("england"); result.Options[1].Label.Should().Be("Scotland");