Skip to main content
Glama

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
NameRequiredDescriptionDefault
coverageNo
mockStrategiesNo
testTypesYesTypes of tests to generate
testingFrameworksYesTesting frameworks to include

Implementation Reference

  • 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, }, ], };
  • 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 {
  • Tool permission registration mapping 'dhis2_android_setup_testing' to required user permission 'canUseMobileFeatures' for access control during tool filtering.
    ['dhis2_android_setup_testing', 'canUseMobileFeatures'],
  • 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';

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dradebo/dhis2-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server