Skip to content

Commit

Permalink
Bump version: 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
danielepantaleone committed Nov 17, 2023
1 parent 257f719 commit 4d16e69
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ Add the dependency to your `build.gradle` (Gradle Groovy):

```gradle
dependencies {
androidTestImplementation 'io.github.danielepantaleone:kttestexpectation:1.0.2'
androidTestImplementation 'io.github.danielepantaleone:kttestexpectation:1.1.0'
}
```

or `build.gradle.kts` (Kotlin DSL):

```gradle
dependencies {
androidTestImplementation("io.github.danielepantaleone:kttestexpectation:1.0.2")
androidTestImplementation("io.github.danielepantaleone:kttestexpectation:1.1.0")
}
```

Expand Down Expand Up @@ -108,6 +108,26 @@ fun testAwaitMultipleExpectations() {
}
```

Awaiting on multiple expectations of different types:

```kotlin
@Test
fun testAwaitMultipleExpectationsWithMixedTypes() {
val expectation1 = expectation("Expectation 1")
val expectation2 = expectation("Expectation 2") { // no need to manually fulfill()
somePredicateThatWillEventuallyEvaluateToTrue()
}
asyncLongOperationWithCallback {
expectation1.fulfill()
}
waitForExpectations(
expectations = listOf(expectation1, expectation2),
time = 60,
unit = TimeUnit.SECONDS
)
}
```

## Contributing

If you like this project you can contribute it by:
Expand Down
2 changes: 1 addition & 1 deletion kttestexpectation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
compileSdk 34
defaultConfig {
minSdk 23
versionName "1.0.2"
versionName "1.1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand Down

0 comments on commit 4d16e69

Please sign in to comment.