j

    jw

    4 years ago
    do you have common tests?
    a

    albertgao

    4 years ago
    Yes. And it’s built via
    kotlin-test-common
    and
    kotlin-annotation-common
    j

    jw

    4 years ago
    Ok so when those common tests are being compiled in the JVM module they have nothing to link against
    The common test library is stubs and requires an implementation
    This is no different than the fact that you use the common stdlib and are including the real stdlib implementation
    a

    albertgao

    4 years ago
    Thanks! I see, just like IoC, they are just interfaces, needs actual implementation.
    j

    jw

    4 years ago
    Yep!
    a

    albertgao

    4 years ago
    How to run these tests in IDEA? I tried to right click the
    test
    folder, unlike the
    jvm
    folder, The
    Run XXXX
    is wrong, it said
    Run Unittest in test
    , which has been recognised as a python project… Is that the same problem as you mentioned? ’cos it lacks the actual implementation? How could I run these tests via IDEA GUI like the
    JVM
    one? I tried
    ./gradlew :common:test
    , not work, seems the tests can be run via the platform build like
    ./gradlew :jvm:test
    . What ’s the logic here? So does it mean that it only make sense to test the
    common
    against the platform that it gonna run on rather than test the
    common
    code itself?
    ilya.gorbunov

    ilya.gorbunov

    4 years ago
    Yes, common code cannot be run in the air, without the platform to run on.