-
Notifications
You must be signed in to change notification settings - Fork 200
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
add feature fail-on-empty #243
Conversation
Nice, this actually solves #161 |
@dorny I would appreciate this, avoid having to do a workaround. I use a matrix workflow where sometimes projects built don't have tests, therefore no test files are produced. |
I agree with this, |
@j-catania How nice to see this merged! When can we expect a release including this feature? |
Hi @fdahlen, I'm working on it. I will keep you informed :) |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [dorny/test-reporter](https://github.com/dorny/test-reporter) | action | minor | `v1` -> `v1.8.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>dorny/test-reporter (dorny/test-reporter)</summary> ### [`v1.8.0`](https://github.com/dorny/test-reporter/releases/tag/v1.8.0) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.7.0...v1.8.0) #### What's Changed - CHANGELOG.md by [@​j-catania](https://github.com/j-catania) in [dorny/test-reporter#297 - Bump [@​babel/traverse](https://github.com/babel/traverse) from 7.12.1 to 7.23.2 in /reports/jest by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#303 - Bump [@​babel/traverse](https://github.com/babel/traverse) from 7.22.20 to 7.23.2 by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#304 - Add `SwiftXunitParser` class based on `JavaJunitParser` for `swift-xunit` reporter by [@​jozefizso](https://github.com/jozefizso) in [dorny/test-reporter#317 - Update to Node20 by [@​j-catania](https://github.com/j-catania) in [dorny/test-reporter#315 - Fix build error by [@​dorny](https://github.com/dorny) in [dorny/test-reporter#331 - Use NodeJS 18 LTS as default runtime by [@​jozefizso](https://github.com/jozefizso) in [dorny/test-reporter#332 - Update all packages by [@​jozefizso](https://github.com/jozefizso) in [dorny/test-reporter#333 - Escape <> characters in suite name by [@​wingyplus](https://github.com/wingyplus) in [dorny/test-reporter#236 - Adding feature and bug template by [@​j-catania](https://github.com/j-catania) in [dorny/test-reporter#341 - Update check title and remove icon by [@​ldaneliukas](https://github.com/ldaneliukas) in [dorny/test-reporter#144 - `test-reporter` release v1.8.0 by [@​jozefizso](https://github.com/jozefizso) in [dorny/test-reporter#370 #### New Contributors - [@​jozefizso](https://github.com/jozefizso) made their first contribution in [dorny/test-reporter#317 - [@​wingyplus](https://github.com/wingyplus) made their first contribution in [dorny/test-reporter#236 - [@​ldaneliukas](https://github.com/ldaneliukas) made their first contribution in [dorny/test-reporter#144 **Full Changelog**: dorny/test-reporter@v1.7.0...v1.8.0 ### [`v1.7.0`](https://github.com/dorny/test-reporter/releases/tag/v1.7.0) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.6.0...v1.7.0) #### What's Changed - Fix [#​199](https://github.com/dorny/test-reporter/issues/199): Use ✅ instead of ✔️ for better cross platform look by [@​petrdvorak](https://github.com/petrdvorak) in [dorny/test-reporter#200 - Verify content of dist/ folder matches build output by [@​dorny](https://github.com/dorny) in [dorny/test-reporter#207 - Gracefully handle empty nested testsuite elements for JUnit. by [@​rvdlaarschot](https://github.com/rvdlaarschot) in [dorny/test-reporter#193 - Gracefully handle empty failure tags by [@​haudren-woven](https://github.com/haudren-woven) in [dorny/test-reporter#213 - Fix [#​208](https://github.com/dorny/test-reporter/issues/208) - java-junit: show annotations on PR changed files by [@​atsu85](https://github.com/atsu85) in [dorny/test-reporter#209 - Only report failure if fail-on-error is set by [@​trond-snekvik](https://github.com/trond-snekvik) in [dorny/test-reporter#214 - Improve clarity on configuring for forkable repos by [@​abelbraaksma](https://github.com/abelbraaksma) in [dorny/test-reporter#211 - Suppress "Processing test results from" log by [@​vasanthdharmaraj](https://github.com/vasanthdharmaraj) in [dorny/test-reporter#179 - Skip listing of files if error parsing is disabled by [@​dorny](https://github.com/dorny) in [dorny/test-reporter#216 - Correct typo in docs by [@​tangowithfoxtrot](https://github.com/tangowithfoxtrot) in [dorny/test-reporter#254 - update dependencies by [@​j-catania](https://github.com/j-catania) in [dorny/test-reporter#269 - Add permissions to example yml files by [@​TurnrDev](https://github.com/TurnrDev) in [dorny/test-reporter#263 - add feature fail-on-empty by [@​gdams](https://github.com/gdams) in [dorny/test-reporter#243 - Add dependabot configuration by [@​yeikel](https://github.com/yeikel) in [dorny/test-reporter#228 - Bump ws from 7.3.1 to 7.5.9 in /reports/jest by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#265 - Bump actions/checkout from 2 to 4 by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#279 - Add new output for url url html by [@​luisito666](https://github.com/luisito666) in [dorny/test-reporter#242 - Update README.md by [@​IanMoroney](https://github.com/IanMoroney) in [dorny/test-reporter#158 - Update jest-Junit part of Readme by [@​ryancasburn-KAI](https://github.com/ryancasburn-KAI) in [dorny/test-reporter#176 - fix: default-valued fields are not mandatory by [@​TomerFi](https://github.com/TomerFi) in [dorny/test-reporter#172 - Bump ansi-regex from 4.1.0 to 4.1.1 in /reports/jest by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#278 - Bump decode-uri-component from 0.2.0 to 0.2.2 in /reports/jest by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#276 - Bump minimist from 1.2.5 to 1.2.8 in /reports/jest by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#275 - Bump qs from 6.5.2 to 6.5.3 in /reports/jest by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#272 - Bump json5 from 2.1.3 to 2.2.3 in /reports/jest by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#271 - Bump ansi-regex from 3.0.0 to 3.0.1 in /reports/mocha by [@​dependabot](https://github.com/dependabot) in [dorny/test-reporter#270 - declare 'url' and 'url_html' as action outputs by [@​micha-one](https://github.com/micha-one) in [dorny/test-reporter#287 - Avoid split on undefined by [@​cazou](https://github.com/cazou) in [dorny/test-reporter#258 #### New Contributors - [@​petrdvorak](https://github.com/petrdvorak) made their first contribution in [dorny/test-reporter#200 - [@​rvdlaarschot](https://github.com/rvdlaarschot) made their first contribution in [dorny/test-reporter#193 - [@​haudren-woven](https://github.com/haudren-woven) made their first contribution in [dorny/test-reporter#213 - [@​atsu85](https://github.com/atsu85) made their first contribution in [dorny/test-reporter#209 - [@​trond-snekvik](https://github.com/trond-snekvik) made their first contribution in [dorny/test-reporter#214 - [@​abelbraaksma](https://github.com/abelbraaksma) made their first contribution in [dorny/test-reporter#211 - [@​vasanthdharmaraj](https://github.com/vasanthdharmaraj) made their first contribution in [dorny/test-reporter#179 - [@​tangowithfoxtrot](https://github.com/tangowithfoxtrot) made their first contribution in [dorny/test-reporter#254 - [@​TurnrDev](https://github.com/TurnrDev) made their first contribution in [dorny/test-reporter#263 - [@​gdams](https://github.com/gdams) made their first contribution in [dorny/test-reporter#243 - [@​yeikel](https://github.com/yeikel) made their first contribution in [dorny/test-reporter#228 - [@​luisito666](https://github.com/luisito666) made their first contribution in [dorny/test-reporter#242 - [@​IanMoroney](https://github.com/IanMoroney) made their first contribution in [dorny/test-reporter#158 - [@​ryancasburn-KAI](https://github.com/ryancasburn-KAI) made their first contribution in [dorny/test-reporter#176 - [@​TomerFi](https://github.com/TomerFi) made their first contribution in [dorny/test-reporter#172 - [@​micha-one](https://github.com/micha-one) made their first contribution in [dorny/test-reporter#287 - [@​cazou](https://github.com/cazou) made their first contribution in [dorny/test-reporter#258 **Full Changelog**: dorny/test-reporter@v1.6.0...v1.7.0 ### [`v1.6.0`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v160) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.5.0...v1.6.0) - [Update to node16 + recent versions of core and exec packages](https://github.com/dorny/test-reporter/pull/203) - [Update all dependencies to latest versions](https://github.com/dorny/test-reporter/pull/186) - [Fix tests on non us-EN local env](https://github.com/dorny/test-reporter/pull/185) ### [`v1.5.0`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v150) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.4.3...v1.5.0) - [Add option to convert backslashes in path pattern to forward slashes](https://github.com/dorny/test-reporter/pull/128) - [Add option to generate only the summary from processed test results files](https://github.com/dorny/test-reporter/pull/123) ### [`v1.4.3`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v143) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.4.2...v1.4.3) - [Patch java-junit to handle missing time field](https://github.com/dorny/test-reporter/pull/115) - [Fix dart-json parsing broken by print message](https://github.com/dorny/test-reporter/pull/114) ### [`v1.4.2`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v142) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.4.1...v1.4.2) - [Fix dotnet-trx parsing of passed tests with non-empty error info](https://github.com/dorny/test-reporter/commit/43d89d5ee509bcef7bd0287aacc0c4a4fb9c1657) ### [`v1.4.1`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v141) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.4.0...v1.4.1) - [Fix dotnet-trx parsing of tests with custom display names](https://github.com/dorny/test-reporter/pull/105) ### [`v1.4.0`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v140) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.3.1...v1.4.0) - [Add support for mocha-json](https://github.com/dorny/test-reporter/pull/90) - [Use full URL to fix navigation from summary to suite details](https://github.com/dorny/test-reporter/pull/89) - [New report rendering with code blocks instead of tables](https://github.com/dorny/test-reporter/pull/88) - [Improve test error messages from flutter](https://github.com/dorny/test-reporter/pull/87) ### [`v1.3.1`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v131) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.3.0...v1.3.1) - [Fix: parsing of .NET duration string without milliseconds](https://github.com/dorny/test-reporter/pull/84) - [Fix: dart-json - remove group name from test case names](https://github.com/dorny/test-reporter/pull/85) - [Fix: net-trx parser crashing on missing duration attribute](https://github.com/dorny/test-reporter/pull/86) ### [`v1.3.0`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v130) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.2.0...v1.3.0) - [Add support for java-junit](https://github.com/dorny/test-reporter/pull/80) - [Fix: Handle test reports with no test cases](https://github.com/dorny/test-reporter/pull/70) - [Fix: Reduce number of API calls to get list of files tracked by GitHub](https://github.com/dorny/test-reporter/pull/69) ### [`v1.2.0`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v120) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.1.0...v1.2.0) - [Set `listTests` and `listSuites` to lower detail if report is too big](https://github.com/dorny/test-reporter/pull/60) ### [`v1.1.0`](https://github.com/dorny/test-reporter/blob/HEAD/CHANGELOG.md#v110) [Compare Source](https://github.com/dorny/test-reporter/compare/v1.0.0...v1.1.0) - [Support public repo PR workflow](https://github.com/dorny/test-reporter/pull/56) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/AmadeusITGroup/otter). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
There are use-cases where you wouldn't necessarily want the action to fail if no test results were found (it could just mean that no test results were run). This PR supports not failing the job if no results are found.