dhis2_android_setup_testing
Configure testing frameworks and generate test patterns for DHIS2 Android applications. Set up unit, integration, and UI tests with mock strategies for API responses and database operations.
Instructions
Configure testing framework and generate test patterns for DHIS2 Android app
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testingFrameworks | Yes | Testing frameworks to include | |
| testTypes | Yes | Types of tests to generate | |
| mockStrategies | No | ||
| coverage | No |
Implementation Reference
- src/index.ts:1333-1343 (handler)Main dispatcher handler for the 'dhis2_android_setup_testing' tool. Extracts arguments, calls the generator function, and returns formatted markdown response.case 'dhis2_android_setup_testing': const testingArgs = args as any; const testingConfig = generateAndroidTestingConfiguration(testingArgs); return { content: [ { type: 'text', text: testingConfig, }, ], };
- src/android-generators.ts:1794-1804 (handler)Core handler logic that generates the DHIS2 Android testing configuration markdown template based on provided arguments like testingFrameworks and testTypes.export function generateAndroidTestingConfiguration(args: any): string { return `# DHIS2 Android Testing Configuration Testing frameworks: ${args.testingFrameworks.join(', ')} Test types: ${args.testTypes.join(', ')} ## Implementation details for testing setup... `; } export function generateAndroidUIConfiguration(args: any): string {
- src/permission-system.ts:163-163 (registration)Tool permission registration: requires 'canUseMobileFeatures' permission to access this development tool.['dhis2_android_setup_testing', 'canUseMobileFeatures'],