Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goncalossilva/kotlinjs-useanybrowser
Kotlin/JS plugin to run tests on any available browser
https://github.com/goncalossilva/kotlinjs-useanybrowser
browser kotlin-js testing
Last synced: about 2 months ago
JSON representation
Kotlin/JS plugin to run tests on any available browser
- Host: GitHub
- URL: https://github.com/goncalossilva/kotlinjs-useanybrowser
- Owner: goncalossilva
- License: mit
- Created: 2021-12-28T03:03:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T16:00:39.000Z (7 months ago)
- Last Synced: 2024-05-22T17:26:18.854Z (7 months ago)
- Topics: browser, kotlin-js, testing
- Language: Kotlin
- Homepage:
- Size: 379 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# kotlinjs-useanybrowser
Gradle plugin for using any available browser when testing JS under Kotlin Multiplatform.
By default, the JS target requires setting browsers under test explicitly, which indirectly requires
contributors (and CI) to agree about which browser(s) to use under testing, and have them installed.
The higher the number of contributors, the more cumbersome this becomes.In some projects, it is enough to run tests on _any_ available browser.
## Usage
```kotlin
plugins {
id("com.goncalossilva.useanybrowser") version ""
}kotlin {
js {
browser {
testTask {
useKarma {
useAnyBrowser()
}
}
}
}
}
```After this, browser tests will run on any available browser, preferring headless variants first,
and Chrome variants second.## License
Released under the [MIT License](https://opensource.org/licenses/MIT).