Git Product home page Git Product logo

process-dotnet-test-results's Issues

Patch update v.2.3.1 now breaks the workflow because 'characterLimit' is not defined

Our workflows were updated overnight because there was a patch update, but now all workflows broke.

The error we get:

Run im-open/[email protected]
Looking for trx files in '/home/runner/work/[project-path-masked]/test-results'...
The following trx files were found:
	/home/runner/work/[project-path-masked]/test-results/_fv-az586-374_2023-06-14_06_27_21.trx
Transforming file /home/runner/work/[project-path-masked]/test-results/_fv-az586-374_2023-06-14_06_27_21.trx
Checking for failing tests..
There are no failing tests.
Error: An error occurred processing the trx files: characterLimit is not defined

It seems to be related to the change from yesterday, and the culprit can be found here:

const commentCharacterLimit = 65535;
let markupComment = markupForComment.join('\n');
if (markupComment.length > characterLimit) {
core.info(
`Truncating markup data due to character limit exceeded for github api. Markup data length: ${markupComment.length}/${characterLimit}`
);

Where the variable at line 45 probably needed to be commentCharacterLimit?

Failing test message and stack trace not showing

Good morning. I have been playing with your action in a small test project I am working on and ran into an issue I cannot see documented / commented on anywhere in the notes.

With this configuration (mostly copied from your readme), it is effectively reporting on error count, but it is not displaying details for failing tests.

    - name: dotnet test
      run: dotnet test --logger trx --configuration Release

    - name: Process trx reports with default
      if: always()
      # You may also reference just the major or major.minor version
      uses: im-open/[email protected]
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}      
        create-status-check: true
        create-pr-comment: true
        update-comment-if-one-exists: true
        timezone: 'america/chicago'
        comment-identifier: 'BookQuest PR Test Output'

    - name: Annotate Test Outcome
      if: steps.process-trx.outputs.test-results-truncated == 'true'
      run: cat ${{ steps.process-trx.outputs.test-results-file-path }} > $GITHUB_STEP_SUMMARY

image

If I have made a mistake in configuration / missed something, my apologies. Otherwise, there might be an issue with assigning / showing these values.

Appreciate any help!

Show skipped Tests

When there are tests not executed, eg xUnit.Skip attribute, show those in the annotations output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.