Last active
August 29, 2023 19:14
-
-
Save LethalMaus/955f97aa7000bf54fd5ebaa9a8574a91 to your computer and use it in GitHub Desktop.
BuildFlavors8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class UiTests { | |
| @get:Rule | |
| val serverRule = MockWebServerRule(BuildConfig.BASE_URL) | |
| @Test | |
| fun testUiWithMockServer() { | |
| // Set up mock server responses | |
| serverRule.enqueue(MockResponse().setBody(/* JSON response */)) | |
| // Perform UI testing scenarios | |
| // ... | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment