Comments (9)
You are right, there are use-cases where you want it to succeed and not pollute your checks. More flexibility over the default behaviour is a good compromise in this case.
Do you want to update your PR or should I sketch it out as it would require README.md and action.yml changes as well?
from publish-unit-test-result-action.
I will prepare something tomorrow then.
from publish-unit-test-result-action.
Please try the fix by running the action from branch branch-check-fail-behaviour
:
uses: EnricoMi/publish-unit-test-result-action@branch-check-fail-behaviour
from publish-unit-test-result-action.
The quoted This action does not fail …
refers to the actual publish job (publish_unit_test_results
), which is green in both your screenshots. The check run that you are referring to is created by that action to summarize the test results.
To be honest I am not quite sure what is the best behaviour here. One could argue that the Unit Test Results
check could represent the outcome of the unit tests and thus should reflect the failure, while the publish_unit_test_result
is always green unless there is an exception in processing test results.
On the other hand you could say that the job that ran the unit tests should also fail, thus it is redundant for Unit Test Results
to also be in fail state.
Unless there is a good reasoning for the latter point, I think I am shifted towards the first. In that case, I should probably reword that note to be more precise.
from publish-unit-test-result-action.
The current functionality is rigid and cannot satisfy a use-case where we want certain test failures to be notified on, but not actually cause a failure in the workflow.
What do you think about a boolean parameter for failOnFailedTests
defaulting to true
instead of forcing a specific behavior?
from publish-unit-test-result-action.
If you'd prefer to take the task I'd support that. Otherwise I could work on it on the weekend.
from publish-unit-test-result-action.
works great. thanks!
from publish-unit-test-result-action.
Merged to master. This will be released shortly.
from publish-unit-test-result-action.
This has been released. If you are using @v1
, it should be picked up on the next run, otherwise upgrade to @v1.10
or @v1
.
from publish-unit-test-result-action.
Related Issues (20)
- Publish test results task is not working due to test result XML not being found HOT 2
- Action fails if comment made by user whose account has been deleted prior to merge HOT 2
- Test Results are not shown in workflow run job list HOT 15
- action_fail_on_inconclusive passed with just a warning annotation HOT 11
- Remove symbols links HOT 2
- Support Maven Surefire Plugin rerunning flaky tests HOT 7
- Add support for TRX StdOut-Element HOT 3
- Option "check_run" not recognized HOT 3
- Unhandled error that crashes GitHub Actions - .NET with coverlet.cobertura HOT 11
- Publishing json file doesn't work if check_run is set to false HOT 2
- bug: action fails to setup due to `--user` in embedded python for windows HOT 5
- androidTest / Could not find any files for test-results/**/*.xml HOT 7
- `-m: command not found` during `Install Python dependencies` HOT 9
- Windows requirements.txt fail HOT 2
- ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.GITHUB_ACTION_PATH\\..\\python\\requirements.txt' HOT 4
- Add support for python 3.12 HOT 4
- 2.16.0 syntax error HOT 4
- Support per file `test_file_prefix` HOT 1
- Spectral junit report has wrong paths to OpenAPI spec file HOT 3
- Annotations are reported at line 0 and therefore are not display correctly. HOT 3
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 publish-unit-test-result-action.