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
Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix #3329 #3954
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Use the `FrameworkAdapter` interface provided by the Kotlin/JS test infra, so that failed tests are correctly reported for the JS target on Node.js (does not apply to Wasm/JS, which does not require "adapter transformation"). * Use JS Promise instead of callbacks to interact with the JS test framework. * Clean up the code to avoid API layers changing from Mocha/Jasmine style ("describe", "it) to Kotlin test style ("suite", "test) and back.
If there are no objections, I'd like to get this merged within 48 hours in order to test a bit with the snapshot in advance of any potentially upcoming release. |
renovate bot
added a commit
to StefanLobbenmeier/yt-dlp-compose
that referenced
this pull request
May 9, 2024
[![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.8.1` -> `5.9.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-runner-junit5/5.9.0?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.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-runner-junit5/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-runner-junit5/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-runner-junit5)</summary> ### [`v5.9.0`](https://togithub.com/kotest/kotest/releases/tag/v5.9.0) #### Highlights Support for wasmJs has been added, curtesy of [@​OliverO2](https://togithub.com/OliverO2) #### What's Changed - Add wasmJs target by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3805 - fix(docs): indentation in System Extensions by [@​craigpastro](https://togithub.com/craigpastro) in [kotest/kotest#3940 - Change Arb.filterIsInstance() signature to use single type parameter by [@​kshired](https://togithub.com/kshired) in [kotest/kotest#3943 - Add missing functions to property-arbs docs by [@​snowe2010](https://togithub.com/snowe2010) in [kotest/kotest#3945 - Increasing JVM heap allowance on GitHub by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3948 - Fix JS and Wasm/JS test timeouts, bring back Node.js test output by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3953 - add-similarity-to-contains-draft ([#​42](https://togithub.com/kotest/kotest/issues/42)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3906 - Update Sonatype snapshot URL by [@​aSemy](https://togithub.com/aSemy) in [kotest/kotest#3956 - Fix json assertions artifact coordinate in docs by [@​TWiStErRob](https://togithub.com/TWiStErRob) in [kotest/kotest#3968 - Create CODE_OF_CONDUCT.md by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#3987 - Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix [#​3329](https://togithub.com/kotest/kotest/issues/3329) by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3954 - Correct Collection Matchers Documentation For `collection.shouldContainAllInAnyOrder()` by [@​u-ways-e](https://togithub.com/u-ways-e) in [kotest/kotest#3995 - chore(deps): update plugin com.gradle.enterprise to v3.17.2 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3990 - Add kotlin-faker to extensions list by [@​serpro69](https://togithub.com/serpro69) in [kotest/kotest#3971 - Better assertion failures for containJsonKeyValue by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3949 - fix(deps): update dependency io.github.classgraph:classgraph to v4.8.172 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3957 - Add similarity to contain exactly in any order by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3938 - Fix Arb.list failing within edge cases in case of null values by [@​oliverblaha](https://togithub.com/oliverblaha) in [kotest/kotest#3982 - chore(deps): update plugin kotlinbinarycompatibilityvalidator to v0.14.0 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3993 - chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3992 - fixing the kotest autoscan warning message to reference the right property name by [@​stepanv](https://togithub.com/stepanv) in [kotest/kotest#4000 - fix(deps): update dependency io.projectreactor.tools:blockhound to v1.0.9.release by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3989 - Allow comparison between empty set and other iterables by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4005 - Moving similarity feature to kotest-assertions-core by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4006 #### New Contributors - [@​craigpastro](https://togithub.com/craigpastro) made their first contribution in [kotest/kotest#3940 - [@​snowe2010](https://togithub.com/snowe2010) made their first contribution in [kotest/kotest#3945 - [@​TWiStErRob](https://togithub.com/TWiStErRob) made their first contribution in [kotest/kotest#3968 - [@​u-ways-e](https://togithub.com/u-ways-e) made their first contribution in [kotest/kotest#3995 - [@​serpro69](https://togithub.com/serpro69) made their first contribution in [kotest/kotest#3971 - [@​stepanv](https://togithub.com/stepanv) made their first contribution in [kotest/kotest#4000 **Full Changelog**: kotest/kotest@v5.8.1...v5.9.0 </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
added a commit
to typesafegithub/github-actions-typing
that referenced
this pull request
May 9, 2024
[![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.8.1` -> `5.9.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-bom/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-bom/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-bom/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-bom/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-bom)</summary> ### [`v5.9.0`](https://togithub.com/kotest/kotest/releases/tag/v5.9.0) #### Highlights Support for wasmJs has been added, curtesy of [@​OliverO2](https://togithub.com/OliverO2) #### What's Changed - Add wasmJs target by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3805 - fix(docs): indentation in System Extensions by [@​craigpastro](https://togithub.com/craigpastro) in [kotest/kotest#3940 - Change Arb.filterIsInstance() signature to use single type parameter by [@​kshired](https://togithub.com/kshired) in [kotest/kotest#3943 - Add missing functions to property-arbs docs by [@​snowe2010](https://togithub.com/snowe2010) in [kotest/kotest#3945 - Increasing JVM heap allowance on GitHub by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3948 - Fix JS and Wasm/JS test timeouts, bring back Node.js test output by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3953 - add-similarity-to-contains-draft ([#​42](https://togithub.com/kotest/kotest/issues/42)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3906 - Update Sonatype snapshot URL by [@​aSemy](https://togithub.com/aSemy) in [kotest/kotest#3956 - Fix json assertions artifact coordinate in docs by [@​TWiStErRob](https://togithub.com/TWiStErRob) in [kotest/kotest#3968 - Create CODE_OF_CONDUCT.md by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#3987 - Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix [#​3329](https://togithub.com/kotest/kotest/issues/3329) by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3954 - Correct Collection Matchers Documentation For `collection.shouldContainAllInAnyOrder()` by [@​u-ways-e](https://togithub.com/u-ways-e) in [kotest/kotest#3995 - chore(deps): update plugin com.gradle.enterprise to v3.17.2 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3990 - Add kotlin-faker to extensions list by [@​serpro69](https://togithub.com/serpro69) in [kotest/kotest#3971 - Better assertion failures for containJsonKeyValue by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3949 - fix(deps): update dependency io.github.classgraph:classgraph to v4.8.172 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3957 - Add similarity to contain exactly in any order by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3938 - Fix Arb.list failing within edge cases in case of null values by [@​oliverblaha](https://togithub.com/oliverblaha) in [kotest/kotest#3982 - chore(deps): update plugin kotlinbinarycompatibilityvalidator to v0.14.0 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3993 - chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3992 - fixing the kotest autoscan warning message to reference the right property name by [@​stepanv](https://togithub.com/stepanv) in [kotest/kotest#4000 - fix(deps): update dependency io.projectreactor.tools:blockhound to v1.0.9.release by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3989 - Allow comparison between empty set and other iterables by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4005 - Moving similarity feature to kotest-assertions-core by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4006 #### New Contributors - [@​craigpastro](https://togithub.com/craigpastro) made their first contribution in [kotest/kotest#3940 - [@​snowe2010](https://togithub.com/snowe2010) made their first contribution in [kotest/kotest#3945 - [@​TWiStErRob](https://togithub.com/TWiStErRob) made their first contribution in [kotest/kotest#3968 - [@​u-ways-e](https://togithub.com/u-ways-e) made their first contribution in [kotest/kotest#3995 - [@​serpro69](https://togithub.com/serpro69) made their first contribution in [kotest/kotest#3971 - [@​stepanv](https://togithub.com/stepanv) made their first contribution in [kotest/kotest#4000 **Full Changelog**: kotest/kotest@v5.8.1...v5.9.0 </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
added a commit
to TeamDev-IP/JxBrowser-Gradle-Plugin
that referenced
this pull request
May 10, 2024
[![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.8.1` -> `5.9.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-assertions-core/5.9.0?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.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-assertions-core/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-assertions-core/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-assertions-core)</summary> ### [`v5.9.0`](https://togithub.com/kotest/kotest/releases/tag/v5.9.0) #### Highlights Support for wasmJs has been added, curtesy of [@​OliverO2](https://togithub.com/OliverO2) #### What's Changed - Add wasmJs target by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3805 - fix(docs): indentation in System Extensions by [@​craigpastro](https://togithub.com/craigpastro) in [kotest/kotest#3940 - Change Arb.filterIsInstance() signature to use single type parameter by [@​kshired](https://togithub.com/kshired) in [kotest/kotest#3943 - Add missing functions to property-arbs docs by [@​snowe2010](https://togithub.com/snowe2010) in [kotest/kotest#3945 - Increasing JVM heap allowance on GitHub by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3948 - Fix JS and Wasm/JS test timeouts, bring back Node.js test output by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3953 - add-similarity-to-contains-draft ([#​42](https://togithub.com/kotest/kotest/issues/42)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3906 - Update Sonatype snapshot URL by [@​aSemy](https://togithub.com/aSemy) in [kotest/kotest#3956 - Fix json assertions artifact coordinate in docs by [@​TWiStErRob](https://togithub.com/TWiStErRob) in [kotest/kotest#3968 - Create CODE_OF_CONDUCT.md by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#3987 - Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix [#​3329](https://togithub.com/kotest/kotest/issues/3329) by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3954 - Correct Collection Matchers Documentation For `collection.shouldContainAllInAnyOrder()` by [@​u-ways-e](https://togithub.com/u-ways-e) in [kotest/kotest#3995 - chore(deps): update plugin com.gradle.enterprise to v3.17.2 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3990 - Add kotlin-faker to extensions list by [@​serpro69](https://togithub.com/serpro69) in [kotest/kotest#3971 - Better assertion failures for containJsonKeyValue by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3949 - fix(deps): update dependency io.github.classgraph:classgraph to v4.8.172 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3957 - Add similarity to contain exactly in any order by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3938 - Fix Arb.list failing within edge cases in case of null values by [@​oliverblaha](https://togithub.com/oliverblaha) in [kotest/kotest#3982 - chore(deps): update plugin kotlinbinarycompatibilityvalidator to v0.14.0 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3993 - chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3992 - fixing the kotest autoscan warning message to reference the right property name by [@​stepanv](https://togithub.com/stepanv) in [kotest/kotest#4000 - fix(deps): update dependency io.projectreactor.tools:blockhound to v1.0.9.release by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3989 - Allow comparison between empty set and other iterables by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4005 - Moving similarity feature to kotest-assertions-core by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4006 #### New Contributors - [@​craigpastro](https://togithub.com/craigpastro) made their first contribution in [kotest/kotest#3940 - [@​snowe2010](https://togithub.com/snowe2010) made their first contribution in [kotest/kotest#3945 - [@​TWiStErRob](https://togithub.com/TWiStErRob) made their first contribution in [kotest/kotest#3968 - [@​u-ways-e](https://togithub.com/u-ways-e) made their first contribution in [kotest/kotest#3995 - [@​serpro69](https://togithub.com/serpro69) made their first contribution in [kotest/kotest#3971 - [@​stepanv](https://togithub.com/stepanv) made their first contribution in [kotest/kotest#4000 **Full Changelog**: kotest/kotest@v5.8.1...v5.9.0 </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's inside
FrameworkAdapter
interface provided by the Kotlin/JS test infra, so that failed tests are correctly reported for the JS target on Node.js (does not apply to Wasm/JS, which does not require "adapter transformation").Testing JS
Preparation
settings.gradle.kts
:mavenLocal()
torepositories
.":kotest-tests:kotest-tests-js",
kotest-tests/kotest-tests-js/build.gradle.kts
: use appropriate version numbers formavenLocal
publication:id("io.kotest.multiplatform") version "5.9.0-LOCAL"
kotestCompilerPluginVersion.set("5.9.0-LOCAL")
Tasks
gradlew publishToMavenLocal
(once for the Kotest compiler plugin)gradlew -p kotest-tests/kotest-tests-js --continue cleanAllTests jsBrowserTest jsNodeTest wasmJsBrowserTest wasmJsNodeTest
gradlew -p kotest-tests/kotest-tests-js cleanJsBrowserTest jsBrowserTest
gradlew -p kotest-tests/kotest-tests-js cleanJsNodeTest jsNodeTest
gradlew -p kotest-tests/kotest-tests-js cleanWasmJsNodeTest wasmJsNodeTest
gradlew -p kotest-tests/kotest-tests-js cleanWasmJsBrowserTest wasmJsBrowserTest
Check failing tests
Create
kotest-tests/kotest-tests-js/src/jsHostedTest/kotlin/io/kotest/engine/js/BasicTests.kt
with content:Debug browser tests
Problems with Kotest functions running in the browser may not show up in the regular test output, but only in the browser's console. This is invisible with headless browsers. Unless we tweak things a bit:
kotest-tests/kotest-tests-js/karma.config.d/keep-browser-open.js
with content:kotlin
block inkotest-tests/kotest-tests-js/build.gradle.kts
:js { browser { testTask { useKarma { useDebuggableChrome() // useChromeHeadless() } } } }
DEBUG
button.