Skip to content

Conversation

kaushikrw
Copy link
Collaborator

@kaushikrw kaushikrw commented Aug 14, 2025

Related to issue: #kotlin/6416

Description:

This PR introduces the framework for mocking network responses for any tests in the toolkit.

Summary of changes:

  • Added dependency on the mockingjay library which is used for mocking network data.
  • Introduced a new gradle plugin GrantTestPermission which will grant the required permissions to the test app. This is used for granting elevated permissions such as MANAGE_EXTERNAL_STORAGE which is necessary for reading the mocked response files stored in the root of the storage on the test device.
  • Enabled mocking for the FeatureFormTests.

Note : This is dependent on the companion sdk PR in the linked issue.

Pre-merge Checklist

@kaushikrw kaushikrw changed the base branch from main to feature-branches/forms August 14, 2025 21:36
@kaushikrw kaushikrw self-assigned this Aug 18, 2025
@kaushikrw kaushikrw marked this pull request as ready for review August 19, 2025 00:29
@kaushikrw kaushikrw marked this pull request as draft August 19, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant