robolectricTestSuite
Registers a Robolectric test suite as a child of the TestSuiteScope.testSuiteInScope.
The test suite's content resides in a separate RobolectricTestSuiteContent class which will be dynamically loaded by the Robolectric Sandbox class loader for instrumentation.
Optionally, arguments can be provided for the content constructor's parameters, if it has any.
Note: arguments is the boundary where types and values travel between the "normal" JVM world and the Robolectric environment. By default, Robolectric will re-load all classes it encounters with its own sandbox class loader, making them incompatible with the "same" classes in the JVM world. To make a class MyType and all classes in com.example.mypackage portable between those worlds, add the following testConfig parameter to the robolectricTestSuite invocation or anywhere above it in the test element hierarchy:
testConfig = TestConfig.robolectric {
portableClasses += MyType::class
portablePackages += "com.example.mypackage"
}