Looks like I have a new feature request/report for...
# testballoon
e
Looks like I have a new feature request/report for the IDE plugin. I decided to write something like this
Copy code
fun viewModelTestSuite(content: TestSuite.() -> Unit) = testSuite(
    testConfig = TestConfig.mainDispatcher(UnconfinedTestDispatcher()),
    content = content,
)
And usage
Copy code
val SearchViewModelBTTest by viewModelTestSuite {...}
And now SearchViewModelBTTest is marked as unused and I lost gutter icon to run
✅ 1
d
Maybe adding
@TestRegistering
to the
viewModelTestSuite
function does the trick?
e
Thanks! That works!
❤️ 1
I had to add
Copy code
@TestSuitePropertyName qualifiedPropertyName: String = "",
Otherwise compiler plugin would fail. And now works as a charm!
kodee happy 1