BITAU-168 Add Bridge SDK test dependencies (#3890)

This commit is contained in:
Andrew Haisting 2024-09-10 10:11:50 -05:00 committed by GitHub
parent 4e69ed57e8
commit 647b3e921b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 1 deletions

View file

@ -48,4 +48,23 @@ The following is a list of all third-party dependencies required by the SDK.
- **kotlinx.serialization**
- https://github.com/Kotlin/kotlinx.serialization/
- Purpose: JSON serialization library for Kotlin.
- License: Apache 2.0
- License: Apache 2.0
### Development Environment Dependencies
The following is a list of additional third-party dependencies used as part of the local development environment. This includes test-related artifacts as well as tools related to code quality and linting. These are not present in the final packaged SDK.
- **JUnit 5**
- https://github.com/junit-team/junit5
- Purpose: Unit Testing framework for testing SDK code.
- License: Eclipse Public License 2.0
- **MockK**
- https://github.com/mockk/mockk
- Purpose: Kotlin-friendly mocking library.
- License: Apache 2.0
- **Turbine**
- https://github.com/cashapp/turbine
- Purpose: A small testing library for kotlinx.coroutine's Flow.
- License: Apache 2.0

View file

@ -49,5 +49,17 @@ kotlin {
}
dependencies {
// SDK dependencies:
implementation(libs.kotlinx.serialization)
// Test environment dependencies:
testImplementation(libs.junit.junit5)
testImplementation(libs.mockk.mockk)
testImplementation(libs.square.turbine)
}
tasks {
withType<Test> {
useJUnitPlatform()
}
}