You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As proposed by @thoutbeckershere we could do with a test-annotations module on kaluga to gather all commonly used testing annotations.
Describe the solution you'd like
Create annotation for ignoring tests on JavaScript @IgnoreJs
/** * Ignore a test when running the test on a JavaScript test runtime.*/
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
expectannotationclassJsIgnore()
jsTest
// Map to Kotlin Ignore attribute so that the test is ignored by JavaScript test runtime.actualtypealiasJsIgnore= kotlin.test.IgnoreRest// Nothing to do. This should only ignore tests on the JavaScript test runtime.actualannotationclassJsIgnore
Create similar annotations for Jvm and iOS.
Create annotation for running common tests as integration tests @IntegrationTEST
commonTest
/** * An annotation to indicate that the class represents an integration test. * The test is ignored if run as a unit test.*/expectannotationclassIntegrationTest()
androidInstrumentedTest
@Retention
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
actualannotationclassIntegrationTest()
androidUnitTest
actualtypealiasIntegrationTest= org.junit.Ignore
iOSTest
@Retention
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
actualannotationclassIntegrationTest()
jsTest
@Retention
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
actualannotationclassIntegrationTest()
The text was updated successfully, but these errors were encountered:
@Daeda88 do you see any issues with having @IntegrationTEST in kaluga? Also what would be the process to have a common test run as an integration test on Android (Create the task and configure gradle)? I know iOS has no issues running integration tests as it anyway runs all tests on a sim.
Problem is that when you write a library, you can only export the main libraries. That's a problem for Android where you don't have an instrumentationMain or anything. So it's difficult to make this work
I suspect it can be done with the correct gradle module metadata but indeed a bit non-trivial to sort out.
The "easy" way is probably to manually specify dependencies for each sourceset, but then you might as well copy/paste the annotations to each sourceset.
Is your feature request related to a problem? Please describe.
As proposed by @thoutbeckers here we could do with a test-annotations module on kaluga to gather all commonly used testing annotations.
Describe the solution you'd like
Create annotation for ignoring tests on JavaScript
@IgnoreJs
Create similar annotations for Jvm and iOS.
Create annotation for running common tests as integration tests @IntegrationTEST
The text was updated successfully, but these errors were encountered: