-
Notifications
You must be signed in to change notification settings - Fork 627
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 Stacktrace Substring Matching to Throwable Matchers #3998
Conversation
Could you please ensure that the failure message is tested as well? E.g. shouldFail {
Throwable() shouldHaveStackTraceContaining "foobar"
}.message shouldBe """
exact message here
""" |
Also, exceptions spell it as "stackTrace", so IMO we should also capitalize the T. |
Hi @Kantis, thank you for your feedback. I've implemented your suggestions 👍🏻 I noticed that the message with all its stack trace frames can make the test for the message in it's entirety exceptionally lengthy. Considering this, I thought about using a regex to assert on what follows the actual. What are your thoughts on this approach? Do you think it maintains the integrity of the test while addressing the length concern? This is my first time contributing to open source, so any feedback is greatly appreciated! |
Looks good to me. Happy to merge if @Kantis is happy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I added a small test for the failure messages for the regex matchers as well. Thanks for contributing @neBM 🙌🏼
can this be merged @Kantis ? |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-bom](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-bom/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-bom/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-bom/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-bom/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-bom)</summary> ### [`v5.9.1`](https://togithub.com/kotest/kotest/releases/tag/v5.9.1) ##### What's Changed ##### Assertions - shouldHaveElementAt-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3985 - shouldExist-more-info ([#​62](https://togithub.com/kotest/kotest/issues/62)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3984 - singleElement-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3983 - singleElement-with-predicate-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3986 - Add Stacktrace Substring Matching to Throwable Matchers by [@​neBM](https://togithub.com/neBM) in [kotest/kotest#3998 - Deprecating inspecting. by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4009 - Partial key ([#​65](https://togithub.com/kotest/kotest/issues/65)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4013 - fix retry ignore subclass of exception class by [@​kin4496](https://togithub.com/kin4496) in [kotest/kotest#3955 - Add simplified overloads to shouldMatchEach extensions ([#​3911](https://togithub.com/kotest/kotest/issues/3911)) by [@​gianninia](https://togithub.com/gianninia) in [kotest/kotest#3929 - Add an `infix` variant of `shouldNotBeNull` that accepts a block by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#4060 ##### Framework - Handling generic data classes when determining identifier stability by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4007 - Refactor team city listener to extract the writing methods by [@​sksamuel](https://togithub.com/sksamuel) in [kotest/kotest#4053 ##### Property-testing - Reverted generation of null values in `Arb.list<T?>` due to performance issues by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4023 - Add an Arbitrary to generate whitespace. by [@​jedesroches](https://togithub.com/jedesroches) in [kotest/kotest#4030 ##### Docs - Update blogs.md - matchers for temporal types with tolerance by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4021 - fix broken matcher documentation for dates by [@​dzappold](https://togithub.com/dzappold) in [kotest/kotest#4019 - Correct the explanation of lifecycle hooks in docs by [@​kohii](https://togithub.com/kohii) in [kotest/kotest#4020 - Fix links for Testcontainers lifecycle section by [@​gavvvr](https://togithub.com/gavvvr) in [kotest/kotest#4037 - Add link to write-up about ranges by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4042 - Fix test name comparison in docs by [@​hoonloper](https://togithub.com/hoonloper) in [kotest/kotest#4034 ##### Build / CI/CD / Dependency updates - Add wasmJs publishing to release job by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4010 - chore(deps): update dependency gradle to v8.7 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3958 - add-regression-test-for-performance-degradation by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4027 - Publish androidNative targets by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4031 - Publish watchosDeviceArm64 target by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4032 - fix(deps): update dependency io.mockk:mockk to v1.13.11 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#4050 - \[Chore] Upgrade to the Develocity plugin to remove build warnings by [@​pshevche](https://togithub.com/pshevche) in [kotest/kotest#4045 ##### New Contributors - [@​eygraber](https://togithub.com/eygraber) made their first contribution in [kotest/kotest#4010 - [@​dzappold](https://togithub.com/dzappold) made their first contribution in [kotest/kotest#4019 - [@​kohii](https://togithub.com/kohii) made their first contribution in [kotest/kotest#4020 - [@​jedesroches](https://togithub.com/jedesroches) made their first contribution in [kotest/kotest#4030 - [@​gavvvr](https://togithub.com/gavvvr) made their first contribution in [kotest/kotest#4037 - [@​pshevche](https://togithub.com/pshevche) made their first contribution in [kotest/kotest#4045 - [@​hoonloper](https://togithub.com/hoonloper) made their first contribution in [kotest/kotest#4034 - [@​neBM](https://togithub.com/neBM) made their first contribution in [kotest/kotest#3998 **Full Changelog**: kotest/kotest@v5.9.0...v5.9.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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/typesafegithub/github-actions-typing). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-assertions-core](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-assertions-core/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-assertions-core/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-assertions-core/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-assertions-core/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-assertions-core)</summary> ### [`v5.9.1`](https://togithub.com/kotest/kotest/releases/tag/v5.9.1) ##### What's Changed ##### Assertions - shouldHaveElementAt-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3985 - shouldExist-more-info ([#​62](https://togithub.com/kotest/kotest/issues/62)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3984 - singleElement-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3983 - singleElement-with-predicate-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3986 - Add Stacktrace Substring Matching to Throwable Matchers by [@​neBM](https://togithub.com/neBM) in [kotest/kotest#3998 - Deprecating inspecting. by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4009 - Partial key ([#​65](https://togithub.com/kotest/kotest/issues/65)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4013 - fix retry ignore subclass of exception class by [@​kin4496](https://togithub.com/kin4496) in [kotest/kotest#3955 - Add simplified overloads to shouldMatchEach extensions ([#​3911](https://togithub.com/kotest/kotest/issues/3911)) by [@​gianninia](https://togithub.com/gianninia) in [kotest/kotest#3929 - Add an `infix` variant of `shouldNotBeNull` that accepts a block by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#4060 ##### Framework - Handling generic data classes when determining identifier stability by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4007 - Refactor team city listener to extract the writing methods by [@​sksamuel](https://togithub.com/sksamuel) in [kotest/kotest#4053 ##### Property-testing - Reverted generation of null values in `Arb.list<T?>` due to performance issues by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4023 - Add an Arbitrary to generate whitespace. by [@​jedesroches](https://togithub.com/jedesroches) in [kotest/kotest#4030 ##### Docs - Update blogs.md - matchers for temporal types with tolerance by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4021 - fix broken matcher documentation for dates by [@​dzappold](https://togithub.com/dzappold) in [kotest/kotest#4019 - Correct the explanation of lifecycle hooks in docs by [@​kohii](https://togithub.com/kohii) in [kotest/kotest#4020 - Fix links for Testcontainers lifecycle section by [@​gavvvr](https://togithub.com/gavvvr) in [kotest/kotest#4037 - Add link to write-up about ranges by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4042 - Fix test name comparison in docs by [@​hoonloper](https://togithub.com/hoonloper) in [kotest/kotest#4034 ##### Build / CI/CD / Dependency updates - Add wasmJs publishing to release job by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4010 - chore(deps): update dependency gradle to v8.7 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3958 - add-regression-test-for-performance-degradation by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4027 - Publish androidNative targets by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4031 - Publish watchosDeviceArm64 target by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4032 - fix(deps): update dependency io.mockk:mockk to v1.13.11 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#4050 - \[Chore] Upgrade to the Develocity plugin to remove build warnings by [@​pshevche](https://togithub.com/pshevche) in [kotest/kotest#4045 ##### New Contributors - [@​eygraber](https://togithub.com/eygraber) made their first contribution in [kotest/kotest#4010 - [@​dzappold](https://togithub.com/dzappold) made their first contribution in [kotest/kotest#4019 - [@​kohii](https://togithub.com/kohii) made their first contribution in [kotest/kotest#4020 - [@​jedesroches](https://togithub.com/jedesroches) made their first contribution in [kotest/kotest#4030 - [@​gavvvr](https://togithub.com/gavvvr) made their first contribution in [kotest/kotest#4037 - [@​pshevche](https://togithub.com/pshevche) made their first contribution in [kotest/kotest#4045 - [@​hoonloper](https://togithub.com/hoonloper) made their first contribution in [kotest/kotest#4034 - [@​neBM](https://togithub.com/neBM) made their first contribution in [kotest/kotest#3998 **Full Changelog**: kotest/kotest@v5.9.0...v5.9.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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/TeamDev-IP/JxBrowser-Gradle-Plugin). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-runner-junit5](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-runner-junit5/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-runner-junit5/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-runner-junit5/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-runner-junit5/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-runner-junit5)</summary> ### [`v5.9.1`](https://togithub.com/kotest/kotest/releases/tag/v5.9.1) ##### What's Changed ##### Assertions - shouldHaveElementAt-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3985 - shouldExist-more-info ([#​62](https://togithub.com/kotest/kotest/issues/62)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3984 - singleElement-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3983 - singleElement-with-predicate-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3986 - Add Stacktrace Substring Matching to Throwable Matchers by [@​neBM](https://togithub.com/neBM) in [kotest/kotest#3998 - Deprecating inspecting. by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4009 - Partial key ([#​65](https://togithub.com/kotest/kotest/issues/65)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4013 - fix retry ignore subclass of exception class by [@​kin4496](https://togithub.com/kin4496) in [kotest/kotest#3955 - Add simplified overloads to shouldMatchEach extensions ([#​3911](https://togithub.com/kotest/kotest/issues/3911)) by [@​gianninia](https://togithub.com/gianninia) in [kotest/kotest#3929 - Add an `infix` variant of `shouldNotBeNull` that accepts a block by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#4060 ##### Framework - Handling generic data classes when determining identifier stability by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4007 - Refactor team city listener to extract the writing methods by [@​sksamuel](https://togithub.com/sksamuel) in [kotest/kotest#4053 ##### Property-testing - Reverted generation of null values in `Arb.list<T?>` due to performance issues by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4023 - Add an Arbitrary to generate whitespace. by [@​jedesroches](https://togithub.com/jedesroches) in [kotest/kotest#4030 ##### Docs - Update blogs.md - matchers for temporal types with tolerance by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4021 - fix broken matcher documentation for dates by [@​dzappold](https://togithub.com/dzappold) in [kotest/kotest#4019 - Correct the explanation of lifecycle hooks in docs by [@​kohii](https://togithub.com/kohii) in [kotest/kotest#4020 - Fix links for Testcontainers lifecycle section by [@​gavvvr](https://togithub.com/gavvvr) in [kotest/kotest#4037 - Add link to write-up about ranges by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4042 - Fix test name comparison in docs by [@​hoonloper](https://togithub.com/hoonloper) in [kotest/kotest#4034 ##### Build / CI/CD / Dependency updates - Add wasmJs publishing to release job by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4010 - chore(deps): update dependency gradle to v8.7 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3958 - add-regression-test-for-performance-degradation by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4027 - Publish androidNative targets by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4031 - Publish watchosDeviceArm64 target by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4032 - fix(deps): update dependency io.mockk:mockk to v1.13.11 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#4050 - \[Chore] Upgrade to the Develocity plugin to remove build warnings by [@​pshevche](https://togithub.com/pshevche) in [kotest/kotest#4045 ##### New Contributors - [@​eygraber](https://togithub.com/eygraber) made their first contribution in [kotest/kotest#4010 - [@​dzappold](https://togithub.com/dzappold) made their first contribution in [kotest/kotest#4019 - [@​kohii](https://togithub.com/kohii) made their first contribution in [kotest/kotest#4020 - [@​jedesroches](https://togithub.com/jedesroches) made their first contribution in [kotest/kotest#4030 - [@​gavvvr](https://togithub.com/gavvvr) made their first contribution in [kotest/kotest#4037 - [@​pshevche](https://togithub.com/pshevche) made their first contribution in [kotest/kotest#4045 - [@​hoonloper](https://togithub.com/hoonloper) made their first contribution in [kotest/kotest#4034 - [@​neBM](https://togithub.com/neBM) made their first contribution in [kotest/kotest#3998 **Full Changelog**: kotest/kotest@v5.9.0...v5.9.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, 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/StefanLobbenmeier/yt-dlp-compose). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-assertions-json](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-assertions-json/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-assertions-json/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-assertions-json/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-assertions-json/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.kotest:kotest-property](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-property/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-property/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-property/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-property/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.kotest:kotest-framework-datatest](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-framework-datatest/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-framework-datatest/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-framework-datatest/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-framework-datatest/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.kotest:kotest-assertions-core](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-assertions-core/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-assertions-core/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-assertions-core/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-assertions-core/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.kotest:kotest-runner-junit5](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-runner-junit5/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-runner-junit5/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-runner-junit5/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-runner-junit5/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-assertions-json)</summary> ### [`v5.9.1`](https://togithub.com/kotest/kotest/releases/tag/v5.9.1) #### What's Changed ##### Assertions - shouldHaveElementAt-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3985 - shouldExist-more-info ([#​62](https://togithub.com/kotest/kotest/issues/62)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3984 - singleElement-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3983 - singleElement-with-predicate-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3986 - Add Stacktrace Substring Matching to Throwable Matchers by [@​neBM](https://togithub.com/neBM) in [kotest/kotest#3998 - Deprecating inspecting. by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4009 - Partial key ([#​65](https://togithub.com/kotest/kotest/issues/65)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4013 - fix retry ignore subclass of exception class by [@​kin4496](https://togithub.com/kin4496) in [kotest/kotest#3955 - Add simplified overloads to shouldMatchEach extensions ([#​3911](https://togithub.com/kotest/kotest/issues/3911)) by [@​gianninia](https://togithub.com/gianninia) in [kotest/kotest#3929 - Add an `infix` variant of `shouldNotBeNull` that accepts a block by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#4060 ##### Framework - Handling generic data classes when determining identifier stability by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4007 - Refactor team city listener to extract the writing methods by [@​sksamuel](https://togithub.com/sksamuel) in [kotest/kotest#4053 ##### Property-testing - Reverted generation of null values in `Arb.list<T?>` due to performance issues by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4023 - Add an Arbitrary to generate whitespace. by [@​jedesroches](https://togithub.com/jedesroches) in [kotest/kotest#4030 ##### Docs - Update blogs.md - matchers for temporal types with tolerance by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4021 - fix broken matcher documentation for dates by [@​dzappold](https://togithub.com/dzappold) in [kotest/kotest#4019 - Correct the explanation of lifecycle hooks in docs by [@​kohii](https://togithub.com/kohii) in [kotest/kotest#4020 - Fix links for Testcontainers lifecycle section by [@​gavvvr](https://togithub.com/gavvvr) in [kotest/kotest#4037 - Add link to write-up about ranges by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4042 - Fix test name comparison in docs by [@​hoonloper](https://togithub.com/hoonloper) in [kotest/kotest#4034 ##### Build / CI/CD / Dependency updates - Add wasmJs publishing to release job by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4010 - chore(deps): update dependency gradle to v8.7 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3958 - add-regression-test-for-performance-degradation by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4027 - Publish androidNative targets by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4031 - Publish watchosDeviceArm64 target by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4032 - fix(deps): update dependency io.mockk:mockk to v1.13.11 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#4050 - \[Chore] Upgrade to the Develocity plugin to remove build warnings by [@​pshevche](https://togithub.com/pshevche) in [kotest/kotest#4045 #### New Contributors - [@​eygraber](https://togithub.com/eygraber) made their first contribution in [kotest/kotest#4010 - [@​dzappold](https://togithub.com/dzappold) made their first contribution in [kotest/kotest#4019 - [@​kohii](https://togithub.com/kohii) made their first contribution in [kotest/kotest#4020 - [@​jedesroches](https://togithub.com/jedesroches) made their first contribution in [kotest/kotest#4030 - [@​gavvvr](https://togithub.com/gavvvr) made their first contribution in [kotest/kotest#4037 - [@​pshevche](https://togithub.com/pshevche) made their first contribution in [kotest/kotest#4045 - [@​hoonloper](https://togithub.com/hoonloper) made their first contribution in [kotest/kotest#4034 - [@​neBM](https://togithub.com/neBM) made their first contribution in [kotest/kotest#3998 **Full Changelog**: kotest/kotest@v5.9.0...v5.9.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates 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/abendt/aws-kinesis). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-property](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-property/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-property/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-property/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-property/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [io.kotest:kotest-assertions-core](https://togithub.com/kotest/kotest) | `5.9.0` -> `5.9.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-assertions-core/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-assertions-core/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-assertions-core/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-assertions-core/5.9.0/5.9.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-property)</summary> ### [`v5.9.1`](https://togithub.com/kotest/kotest/releases/tag/v5.9.1) ##### What's Changed ##### Assertions - shouldHaveElementAt-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3985 - shouldExist-more-info ([#​62](https://togithub.com/kotest/kotest/issues/62)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3984 - singleElement-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3983 - singleElement-with-predicate-more-info by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3986 - Add Stacktrace Substring Matching to Throwable Matchers by [@​neBM](https://togithub.com/neBM) in [kotest/kotest#3998 - Deprecating inspecting. by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4009 - Partial key ([#​65](https://togithub.com/kotest/kotest/issues/65)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4013 - fix retry ignore subclass of exception class by [@​kin4496](https://togithub.com/kin4496) in [kotest/kotest#3955 - Add simplified overloads to shouldMatchEach extensions ([#​3911](https://togithub.com/kotest/kotest/issues/3911)) by [@​gianninia](https://togithub.com/gianninia) in [kotest/kotest#3929 - Add an `infix` variant of `shouldNotBeNull` that accepts a block by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#4060 ##### Framework - Handling generic data classes when determining identifier stability by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4007 - Refactor team city listener to extract the writing methods by [@​sksamuel](https://togithub.com/sksamuel) in [kotest/kotest#4053 ##### Property-testing - Reverted generation of null values in `Arb.list<T?>` due to performance issues by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4023 - Add an Arbitrary to generate whitespace. by [@​jedesroches](https://togithub.com/jedesroches) in [kotest/kotest#4030 ##### Docs - Update blogs.md - matchers for temporal types with tolerance by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4021 - fix broken matcher documentation for dates by [@​dzappold](https://togithub.com/dzappold) in [kotest/kotest#4019 - Correct the explanation of lifecycle hooks in docs by [@​kohii](https://togithub.com/kohii) in [kotest/kotest#4020 - Fix links for Testcontainers lifecycle section by [@​gavvvr](https://togithub.com/gavvvr) in [kotest/kotest#4037 - Add link to write-up about ranges by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4042 - Fix test name comparison in docs by [@​hoonloper](https://togithub.com/hoonloper) in [kotest/kotest#4034 ##### Build / CI/CD / Dependency updates - Add wasmJs publishing to release job by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4010 - chore(deps): update dependency gradle to v8.7 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3958 - add-regression-test-for-performance-degradation by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#4027 - Publish androidNative targets by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4031 - Publish watchosDeviceArm64 target by [@​eygraber](https://togithub.com/eygraber) in [kotest/kotest#4032 - fix(deps): update dependency io.mockk:mockk to v1.13.11 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#4050 - \[Chore] Upgrade to the Develocity plugin to remove build warnings by [@​pshevche](https://togithub.com/pshevche) in [kotest/kotest#4045 ##### New Contributors - [@​eygraber](https://togithub.com/eygraber) made their first contribution in [kotest/kotest#4010 - [@​dzappold](https://togithub.com/dzappold) made their first contribution in [kotest/kotest#4019 - [@​kohii](https://togithub.com/kohii) made their first contribution in [kotest/kotest#4020 - [@​jedesroches](https://togithub.com/jedesroches) made their first contribution in [kotest/kotest#4030 - [@​gavvvr](https://togithub.com/gavvvr) made their first contribution in [kotest/kotest#4037 - [@​pshevche](https://togithub.com/pshevche) made their first contribution in [kotest/kotest#4045 - [@​hoonloper](https://togithub.com/hoonloper) made their first contribution in [kotest/kotest#4034 - [@​neBM](https://togithub.com/neBM) made their first contribution in [kotest/kotest#3998 **Full Changelog**: kotest/kotest@v5.9.0...v5.9.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates 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/arrow-kt/arrow-website). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR introduces the ability to match substrings and regular expressions in the stacktrace of a
Throwable
in the Kotest assertions library. This feature can be useful when writing tests that need to assert on specific parts of a stacktrace.Changes:
shouldHaveStacktraceContaining
andshouldNotHaveStacktraceContaining
to theThrowable
class. These functions accept aString
orRegex
and use it to match against the stacktrace of theThrowable
.haveStacktraceContaining
that create aMatcher<Throwable>
to perform the actual matching logic.ThrowableMatchersTest.kt
.This enhancement provides more flexibility when writing tests involving exceptions and their stacktraces.