Mini
04/08/2021, 7:15 PMjim
04/08/2021, 7:34 PMjim
04/08/2021, 7:36 PMjim
04/08/2021, 7:37 PMMini
05/10/2021, 5:54 PMjim
05/10/2021, 6:01 PMI figured another option would be to create a jvm library that depends on the jetbrains version and then exposes the ruleWhen I said "using Compose for Desktop would be your best bet", that does mean taking a dependency on the jetbrains version. You may want to look at the work @cb did with Accompanist to see how he introduced tests using desktop: • Tweet: https://twitter.com/chrisbanes/status/1390653509146660864 • Source code: https://github.com/google/accompanist/pull/393
Mini
05/10/2021, 6:16 PMfabio.carballo
10/12/2021, 3:24 PMjim
10/12/2021, 4:44 PMJelle Fresen [G]
10/12/2021, 5:19 PMMini
10/12/2021, 5:26 PMfabio.carballo
10/13/2021, 7:08 AMFragmentScenario
with no success.Mini
10/13/2021, 7:50 AMclass TestApplication : Application()
@RunWith(AndroidJUnit4::class)
@Config(application = TestApplication::class)
class SomeTest {
@get:Rule
val rule = createComposeRule()
@Test
fun someTest() {
rule.setContent {
Text("Hello")
}
rule.onNodeWithText("Hello").assertIsDisplayed()
}
}
Jelle Fresen [G]
10/13/2021, 2:49 PMJelle Fresen [G]
10/13/2021, 2:49 PMfabio.carballo
10/13/2021, 6:20 PM