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");