dhis2_android_setup_testing
Set up and configure testing frameworks, generate test patterns, and evaluate code coverage for DHIS2 Android apps. Supports unit, integration, UI, sync, and offline tests with customizable mock strategies and reporting formats.
Instructions
Configure testing framework and generate test patterns for DHIS2 Android app
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coverage | No | ||
| mockStrategies | No | ||
| testTypes | Yes | Types of tests to generate | |
| testingFrameworks | Yes | Testing frameworks to include |
Implementation Reference
- src/index.ts:1333-1344 (handler)MCP tool handler that processes the tool call by invoking the generateAndroidTestingConfiguration helper function with the provided arguments and returns the generated markdown configuration as response content.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 (helper)Core helper function that generates a markdown document outlining DHIS2 Android testing setup, including testing frameworks and test types based on input parameters. This is the main logic executed by the tool handler.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 mapping 'dhis2_android_setup_testing' to required user permission 'canUseMobileFeatures' for access control during tool filtering.['dhis2_android_setup_testing', 'canUseMobileFeatures'],
- src/index.ts:47-60 (helper)Import statement that brings the generateAndroidTestingConfiguration function into scope for use by the tool handler.generateAndroidProjectInit, generateGradleBuildConfig, generateSyncConfiguration, generateLocationServicesConfig, generateStorageConfiguration, generateCameraConfiguration, generateAndroidAuthenticationConfig, generateDataModelsConfiguration, generateAndroidTestingConfiguration, generateAndroidUIConfiguration, generateOfflineAnalyticsConfiguration, generateNotificationsConfiguration, generatePerformanceOptimizationConfiguration } from './android-generators.js';