Thread
#multiplatform
    p

    pardom

    3 years ago
    I have all my tests in
    commonTest
    . Is it possible to choose just one target to run the tests?
    b

    basher

    3 years ago
    You could mark the test tasks you don't want to run as enabled = false
    p

    pardom

    3 years ago
    Ah, true.
    Thanks
    b

    basher

    3 years ago
    No prob!
    russhwolf

    russhwolf

    3 years ago
    You can also do something like
    @OptionalExpectation expect annotation class SinglePlatformTest
    and then for the platform you’re interested do
    actual annotation class SinglePlatformTest = kotlin.Test
    . Then annotate tests with
    @SinglePlatformTest
    if you want them to only run on that platform. This pattern can give you pretty fine-grained control over which tests run on which platforms.