Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotations aren't set propertly when using working-directory #555

Open
lucasoares opened this issue Feb 10, 2025 · 0 comments
Open

Annotations aren't set propertly when using working-directory #555

lucasoares opened this issue Feb 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lucasoares
Copy link

Describe the bug

I'm using test-reporter with working-directory to make reports of a .NET monorepo containing multiple sulutions and projects.

The git annotations for test failures are not created and linked with the files correctly.

To Reproduce

My configuration (replaced variables with actual values):

   # .... other steps (like test)
    - name: Publish Test Report
      uses: dorny/test-reporter@v1
      if: success() || failure()
      with:
        name: ${{ github.workflow  }} / Test Report
        path: **/*.trx
        reporter: dotnet-trx
        working-directory: src/Applications/Configurations
        token: <MY_TOKEN>
        fail-on-empty: 'false'

I made a change in the test to test failure annotations, making it to fail. The annotation was created but not linked to the correct file.

Screenshot from check run summary:

Image

(ignore the blur, just to hide few things).

The annotation should be created in the path:
src/Applications/Configurations/T(...)t.I(...)s.Application.Configurations.UnitTests/Processors/ConfigurationProcessorTests.cs

Not in the:
T(...)t.I(...)s.Application.Configurations.UnitTests/Processors/ConfigurationProcessorTests.cs

When accessing the pull request itself, the annotation is never shown, only in the check summary page.

Expected behavior

Annotations should appear on the Pull Request file diff.

@lucasoares lucasoares added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants