test

A Multiplatform testing library

License

License

GroupId

GroupId

tz.co.asoft
ArtifactId

ArtifactId

test-android
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

aar
Description

Description

test
A Multiplatform testing library
Project URL

Project URL

https://github.com/aSoft-Ltd/test
Source Code Management

Source Code Management

https://github.com/aSoft-Ltd/test

Download test-android

How to add to project

<!-- https://jarcasting.com/artifacts/tz.co.asoft/test-android/ -->
<dependency>
    <groupId>tz.co.asoft</groupId>
    <artifactId>test-android</artifactId>
    <version>1.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/tz.co.asoft/test-android/
implementation 'tz.co.asoft:test-android:1.0.1'
// https://jarcasting.com/artifacts/tz.co.asoft/test-android/
implementation ("tz.co.asoft:test-android:1.0.1")
'tz.co.asoft:test-android:aar:1.0.1'
<dependency org="tz.co.asoft" name="test-android" rev="1.0.1">
  <artifact name="test-android" type="aar" />
</dependency>
@Grapes(
@Grab(group='tz.co.asoft', module='test-android', version='1.0.1')
)
libraryDependencies += "tz.co.asoft" % "test-android" % "1.0.1"
[tz.co.asoft/test-android "1.0.1"]

Dependencies

compile (10)

Group / Artifact Type Version
org.jetbrains.kotlinx : kotlinx-coroutines-core-jvm jar 1.4.1
org.jetbrains.kotlin : kotlin-test-common jar 1.4.10
org.jetbrains.kotlin : kotlin-test-annotations-common jar 1.4.10
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.10
org.jetbrains.kotlin : kotlin-test jar 1.4.10
org.jetbrains.kotlin : kotlin-test-junit jar 1.4.10
androidx.test.espresso » espresso-core jar 3.1.0
androidx.test » runner jar 1.1.0
androidx.test » rules jar 1.1.0
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.4.10

Project Modules

There are no modules declared in this project.

Test

badge badge badge badge badge

An Opinionated testing library for kotlin multiplatform It supports

  • Kotlin Multiplatform libraries
  • Kotlin Javascript libraries
  • Kotlin Android libraries
  • Kotlin JVM libraries

Introduction

Ever wanted to test suspending functions from common code without hack's? This is your spot

Samples

In your testing code, you can do the following

    @Test
    fun `should_test_a_suspend_function_with_no_problem`() = asyncTest {
        delayForFun()
        // do suspending tasks here and perform assertions on the results
    }

Setup:Gradle

Adding test as a dependency becomes as easy as just

Kotlin Multiplatform

kotlin {
    // . . .
    sourceSets {
        val commonTest by getting {
            dependencies {
                implementation("tz.co.asoft:test-coroutines:+") // please use the latest version possible
            }        
        }
    }
}

Kotlin [android|jvm|js]

kotlin {
    // . . .
    dependencies {
        implementationTest("tz.co.asoft:test-coroutines:+") // please use the latest version possible
        /* Or
         * You can be as specific as
         * tz.co.asoft:test-android:+
         * tz.co.asoft:test-js:+
         * tz.co.asoft:test-jvm:+
        */
        implementationTest("tz.co.asoft:test-coroutines-android:+") // please use the latest version possible
    }
}
tz.co.asoft

asoft

Versions

Version
1.0.1
1.0.0