im-open / process-dotnet-test-results Goto Github PK
View Code? Open in Web Editor NEWGitHub action that creates a status check or pull request comment based on dotnet test trx files
License: MIT License
GitHub action that creates a status check or pull request comment based on dotnet test trx files
License: MIT License
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:
process-dotnet-test-results/src/main.js
Lines 43 to 48 in dd283ee
Where the variable at line 45 probably needed to be commentCharacterLimit
?
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
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!
For those repos where integration tests are ran as a separate workflow along side CI build on a PR (I am sure there are other examples), the results are saved at random to the first workflow that completes.
I wonder if as a workaround, we could utilize the suggestion made in this article. It really is just setting up seperate secret token using GitHub App.
https://github.com/orgs/community/discussions/24616#discussioncomment-5639107
When there are tests not executed, eg xUnit.Skip
attribute, show those in the annotations output
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.