Guides
Testing
Unit, semantics, screenshot and accessibility testing helpers.
- skone-testing provides composable test rules with a pre-configured theme.
- Screenshot tests run against light, dark and 200% font-scale configurations.
- Accessibility assertions verify contrast, target size and semantics in CI.
SKButtonTest.kt
@get:Rule val skone = createSKOneComposeRule()
@Test fun buttonExposesDisabledState() {
skone.setContent { SKButton("Save", enabled = false, onClick = {}) }
skone.onNodeWithText("Save").assertIsNotEnabled()
}