Comments (5)
You may want to try the following PR which adds ability configure multiple imports in one step:
- name: Test Multi test import
uses: ./
if: endsWith(github.ref, 'main') == false
with:
check_name: |-
Example Multi JUnit Test Report
Example Multi Pytest Report
report_paths: |-
**/surefire-reports/TEST-*.xml
test_results/python/report.xml
summary: |-
<table><thead><tr><th> Application (src/applications) </th></tr></thead><tbody><tr><td> multi test </td></tr></tbody></table>
\n
check_title_template: |-
{{SUITE_NAME}} | {{TEST_NAME}}
\n
from action-junit-report.
github recently added job summaries:
https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/
this reads like it might solve this problem too. (also requires less permissions as bonus)
from action-junit-report.
This is now included in v3.3.0
from action-junit-report.
Hi @mikepenz! I couldn't make this new feature work for the original use case:
Running many checks with different check_name will result in the sidebar to contain all those entries.
It would be great if we could merge together the report so only one entry will be shown
From what I see in your example in #195 (comment), you produce several sets of reports in the same job and use one action step to handle them all, via multiple check_name
s and the corresponding report_paths
. But this seems to be a very different use case.
My understanding was that now it's possible to run the action on multiple parallel jobs with the same check_name
and their results will get merged together. But when I tried that, I actually haven't got any check results.
Could you clarify how the new functionality covers the original use case and what's the intended usage?
from action-junit-report.
@laughedelic with the API you outlined, it's possible to have multiple reports imported at once.
The idea is that this can be used if there are multiple different languages for example or different test report types. It's still possible to have individual runs though if this is preferred
Given the way GitHub handles multiple parallel jobs, the action can't actually combine them this way directly.
If you want to import those at once, what you would usually need is something like:
- archive and upload the result files
- have a step which is run after your tests / matrix build, ...
- use the download action from GitHub to collect the reports
- import all of them via the junit action
from action-junit-report.
Related Issues (20)
- Doesn't include errors HOT 3
- Annotation truncates failure output/callstack HOT 6
- Skipping all Annotations HOT 14
- Support ESLint or Jest junit reports HOT 6
- Different line number representation (xunit) HOT 3
- Weird behavior with multiple `report_paths` and failures not being processed HOT 4
- Test report stopped working without change HOT 8
- require_tests flag is not working HOT 5
- Editor points out that github_token is required HOT 1
- Skipped tests are show as passed when included_passed set to true HOT 3
- Test failures not correctly recognized HOT 8
- action using deprecate 'set-output' command HOT 2
- Documentation for Maven Surefire HOT 2
- Out of memory error on large project HOT 14
- Failed tests are not shown in Annotations HOT 9
- Check Run Not Created when update_check: true HOT 2
- act error: Error: The runs.using key in action.yml must be one of: [composite docker node12 node16], got node20 HOT 4
- Invalid character entity when using with dastardly HOT 6
- Error: Converting circular structure to JSON HOT 9
- Option to explicitly fail check run HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-junit-report.