the following code is my repo’s config, it works for my repo:
dengyakui/CodeCoverDemo: demo for code coverage (github.com)
name: .NET on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - name: Restore dependencies run: dotnet restore - name: Build run: dotnet build --no-restore - name: Test run: dotnet test --no-build --verbosity normal --collect "XPlat Code Coverage" - name: Codecov uses: codecov/[email protected]]]>
Thank you very much, Branislav. You are correct, that’s the obvious typo. I’ve fixed it now.
]]>I think there is a typo in this sentence: “Let’s add a project reference from our test project to our class library, then add a using statement to UnitTest1.cs”. Instead it should be written: “Let’s add a project reference from our class library to our test project, then add a using statement to UnitTest1.cs”
Thanks.
]]>