From 647b3e921bcf99abef1ceae3ad8854eb2bc3d4a3 Mon Sep 17 00:00:00 2001 From: Andrew Haisting <142518658+ahaisting-livefront@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:11:50 -0500 Subject: [PATCH] BITAU-168 Add Bridge SDK test dependencies (#3890) --- bridge/README.md | 21 ++++++++++++++++++++- bridge/build.gradle.kts | 12 ++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/bridge/README.md b/bridge/README.md index f126ecec7a0..c1a581a765f 100644 --- a/bridge/README.md +++ b/bridge/README.md @@ -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 \ No newline at end of file + - 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 \ No newline at end of file diff --git a/bridge/build.gradle.kts b/bridge/build.gradle.kts index 878e3b31890..7d3bba7f8da 100644 --- a/bridge/build.gradle.kts +++ b/bridge/build.gradle.kts @@ -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 { + useJUnitPlatform() + } }