Browse Source

Fix Error in snippet at /mnt/agent/work/b8625f0804e53334/tutorials/./UI_Testing/README.md:9 (#3628)

Crashes, because tutorial checker uses desktop-template without uiTesting module

See https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_Publish_2_AllGitHubRelease/4301157?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandBuildProblemsSection=true&expandBuildChangesSection=true

Also adding "``` kotlin` hach to avoid compilation of some snippets 9we use it in another places)
pull/3648/head
Igor Demin 1 year ago committed by GitHub
parent
commit
c44601a1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ci/templates/desktop-template/build.gradle.kts
  2. 2
      ci/templates/desktop-template/gradle/wrapper/gradle-wrapper.properties
  3. 4
      tutorials/UI_Testing/README.md

3
ci/templates/desktop-template/build.gradle.kts

@ -17,6 +17,9 @@ dependencies {
// (in a separate module for demo project and in testMain).
// With compose.desktop.common you will also lose @Preview functionality
implementation(compose.desktop.currentOs)
// Include the Test API
implementation(compose.desktop.uiTestJUnit4)
}
compose.desktop {

2
ci/templates/desktop-template/gradle/wrapper/gradle-wrapper.properties vendored

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

4
tutorials/UI_Testing/README.md

@ -5,7 +5,7 @@ The API for unit testing in Compose for Desktop is nearly identical to the [Jetp
To start using the testing API, you will need to add the dependency on `compose.uiTestJUnit4` to your `build.gradle` file and create the directory for your tests.
If the module is desktop-only (`kotlin("jvm")` is applied), add the dependency via:
```kotlin
``` kotlin
dependencies {
testImplementation(compose.desktop.uiTestJUnit4)
testImplementation(compose.desktop.currentOs)
@ -16,7 +16,7 @@ and the directory for tests will be `src/test/kotlin`
If the module is multiplatform (`kotlin(“multiplatform”)` is applied), add it via:
```kotlin
``` kotlin
kotlin {
sourceSets {
val desktopTest by getting {

Loading…
Cancel
Save