Skip to content

Commit d20b84c

Browse files
committed
Fix and document browser tests
Signed-off-by: Bence Hornák <[email protected]>
1 parent 1a76c44 commit d20b84c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17+
18+
# For browser tests
19+
- uses: browser-actions/setup-chrome@v1
20+
1721
- name: Run checks
1822
run: ./gradlew check --no-daemon --stacktrace

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ Manual formatting is done by invoking
1616
./gradlew ktlintFormat
1717
```
1818

19+
## Testing
20+
21+
Prerequisite for browser tests: Install Google Chrome (or Google Chrome headless)
22+
23+
To run tests on all supported platforms:
24+
```
25+
./gradlew allTests
26+
```
27+
28+
To run all verifications:
29+
```
30+
./gradlew check
31+
```
32+
1933
## Releases
2034

2135
This repo uses _Release Please_ to release packages. Release Please sets up a running PR that tracks all changes in the library, and maintains the versions according to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/), generated when [PRs are merged](https://github.com/amannn/action-semantic-pull-request), based on the PR title. The semantics of the PR title are enforced by the `lint-pr.yml` workflow. When Release Please's running PR is merged, a new release is created, and the associated artifacts are published.

kotlin-sdk/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ kotlin {
3838
browser {
3939
testTask {
4040
useKarma {
41-
useChromiumHeadless()
41+
useChromeHeadless()
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)