basher
01/24/2019, 5:47 PMcheck
task to run tests in kotlin-multiplatform for the common code? I'm running check, and it's succeeded but isn't really doing anythingDiego
01/24/2019, 5:50 PMcheck
task you execute all the unit tests (for iOS you’ll have to add an extra task to run the tests on a simulator)basher
01/24/2019, 5:51 PMTesting started at 09:50 ...
09:50:56: Executing task 'check'...
> Configure project :
Kotlin Multiplatform Projects are an experimental feature.
> Task :check UP-TO-DATE
BUILD SUCCESSFUL in 0s
09:50:56: Task execution finished 'check'.
basher
01/24/2019, 5:51 PMTests passed: 0
basher
01/24/2019, 5:51 PMprintln
for good measureDiego
01/24/2019, 5:54 PMDiego
01/24/2019, 5:54 PMDiego
01/24/2019, 5:58 PMcommonMain
folder and the tests goes in commonTest
folderbasher
01/24/2019, 5:59 PMbasher
01/24/2019, 5:59 PMcommonTest
block from `build.gradle`:
commonTest {
dependencies {
implementation deps.kotlin.test.common
implementation deps.kotlin.test.annotations
}
}
(deps is a dictionary used to organize our deps 🙂)Diego
01/24/2019, 6:02 PMimplementation 'org.jetbrains.kotlin:kotlin-test'
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
In my project I just commented out these lines, run check
and the build was successful so check you have them both in order to be able to run the tests for common.basher
01/24/2019, 6:05 PMDiego
01/24/2019, 6:12 PMbasher
01/24/2019, 6:13 PM