test

A Multiplatform testing library

Лицензия

Лицензия

Категории

Категории

JavaScript Языки программирования
Группа

Группа

tz.co.asoft
Идентификатор

Идентификатор

test-js
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

klib
Описание

Описание

test
A Multiplatform testing library
Ссылка на сайт

Ссылка на сайт

https://github.com/aSoft-Ltd/test
Система контроля версий

Система контроля версий

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

Скачать test-js

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-test-js jar 1.4.10
org.jetbrains.kotlin : kotlin-stdlib-js jar 1.4.10
org.jetbrains.kotlinx : kotlinx-coroutines-core-js 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

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.1
1.0.0