Skip to main content
Glama
TEST_COVERAGE_REPORT.md8.9 kB
# Test Coverage Report Generated: 2025-01-11 ## Summary - **Total Handlers**: 57 - **Total Test Files**: 80 - **Test Config Sections**: 51 (updated 2025-01-11) ## Coverage by Category ### ✅ CREATE Operations (Fully Covered) | Handler | Test File | Config Section | Status | |---------|-----------|----------------|--------| | `handleCreateClass` | `test-create-class.js` | `create_class` | ✅ | | `handleCreateInterface` | `test-create-interface.js` | `create_interface` | ✅ | | `handleCreateProgram` | `test-create-program.js` | `create_program` | ✅ | | `handleCreateDomain` | `test-create-domain.js` | `create_domain` | ✅ | | `handleCreateDataElement` | `test-create-data-element.js` | `create_data_element` | ✅ | | `handleCreateFunctionGroup` | `test-create-function-group.js` | `create_function_group` | ✅ | | `handleCreateFunctionModule` | `test-create-function-module.js` | `create_function_module` | ✅ | | `handleCreatePackage` | `test-create-package.js` | `create_package` | ✅ | | `handleCreateTransport` | `test-create-transport.js` | `create_transport` | ✅ | | `handleCreateTable` | `test-create-table.js` | `create_table` | ✅ | | `handleCreateStructure` | `test-create-structure.js` | `create_structure` | ✅ | | `handleCreateView` | `test-create-view.js` | `create_view` | ✅ | **Coverage**: 12/12 (100%) with config, 12/12 (100%) with test files ### ✅ UPDATE Operations (Fully Covered) | Handler | Test File | Config Section | Status | |---------|-----------|----------------|--------| | `handleUpdateClassSource` | `test-update-class-source.js` | `update_class_source` | ✅ | | `handleUpdateInterfaceSource` | `test-update-interface-source.js` | `update_interface_source` | ✅ | | `handleUpdateProgramSource` | `test-update-program-source.js` | `update_program_source` | ✅ | | `handleUpdateDomain` | `test-update-domain.js` | `update_domain` | ✅ | | `handleUpdateDataElement` | `test-update-data-element.js` | `update_data_element` | ✅ | | `handleUpdateFunctionModuleSource` | `test-update-function-module-source.js` | `update_function_module_source` | ✅ | | `handleUpdateViewSource` | `test-update-view-source.js` | `update_view_source` | ✅ | **Coverage**: 7/7 (100%) with config, 7/7 (100%) with test files ### ✅ GET/READ Operations (Mostly Covered) | Handler | Test File | Config Section | Status | |---------|-----------|----------------|--------| | `handleGetClass` | `test-get-class.js` | `get_class` | ✅ | | `handleGetInterface` | `test-get-interface.js` | `get_interface` | ✅ | | `handleGetProgram` | `test-get-program.js` | `get_program` | ✅ | | `handleGetDomain` | `test-get-domain.js` | `get_domain` | ✅ | | `handleGetDataElement` | `test-get-data-element.js` | `get_data_element` | ✅ | | `handleGetFunction` | `test-get-function.js` | `get_function_test`, `get_function` | ✅ | | `handleGetFunctionGroup` | `test-get-function-group.js` | `get_function_group` | ✅ | | `handleGetPackage` | `test-get-package.js` | `get_package` | ✅ | | `handleGetTransport` | `test-get-transport.js` | `get_transport` | ✅ | | `handleGetTable` | `test-get-table.js` | `get_table` | ✅ | | `handleGetTableContents` | `test-get-table-contents.js` | `get_table_contents` | ✅ | | `handleGetStructure` | `test-get-structure.js` | `get_structure` | ✅ | | `handleGetView` | `test-get-view.js` | `get_view` | ✅ | | `handleGetInclude` | `test-get-include.js` | `get_include` | ✅ | | `handleGetTypeInfo` | `test-get-type-info.js` | `get_type_info` | ✅ | | `handleGetTransaction` | `test-get-transaction.js` | `get_transaction` | ✅ | | `handleGetEnhancements` | `test-get-enhancements.js` | `get_enhancements` | ✅ | | `handleGetSqlQuery` | `test-get-sql-query.js` | `get_sql_query` | ✅ | | `handleGetWhereUsed` | `test-where-used.js` | `get_where_used` | ✅ | | `handleGetObjectInfo` | Various | `get_object_info` | ✅ | | `handleGetProgFullCode` | `test-get-prog-full-code.js` | `get_prog_full_code` | ✅ | | `handleGetAbapAST` | Various | `get_abap_ast` | ✅ | | `handleGetAbapSemanticAnalysis` | Various | `get_abap_semantic_analysis` | ✅ | | `handleGetAllTypes` | `test-get-adt-types.ts` | ❌ | ⚠️ No config | | `handleGetEnhancementSpot` | `test-get-enhancement-spot.js` | ❌ | ⚠️ No config | | `handleGetEnhancementImpl` | Various | ❌ | ⚠️ No config | | `handleGetBdef` | `test-get-bdef.js` | ❌ | ⚠️ No config | | `handleGetIncludesList` | `test-get-includes-list.js` | `get_includes_list` | ✅ | | `handleGetObjectStructure` | `test-get-object-structure.js` | `get_object_structure` | ✅ | | `handleGetObjectsByType` | `test-get-objects-by-type.js` | ❌ | ⚠️ No config | | `handleGetObjectsList` | `test-get-objects-list.js` | `get_objects_list` | ✅ | | `handleGetObjectNodeFromCache` | `test-get-object-node-from-cache.js` | ❌ | ⚠️ No config | | `handleGetAbapSystemSymbols` | Various | ❌ | ⚠️ No config | **Coverage**: 19/33 (58%) with config, 33/33 (100%) with test files ### ✅ DELETE Operations (Fully Covered) | Handler | Test File | Config Section | Status | |---------|-----------|----------------|--------| | `handleDeleteObject` | `test-delete-object.js` | `delete_object` | ✅ | **Coverage**: 1/1 (100%) ### ✅ UTILITY Operations (Partially Covered) | Handler | Test File | Config Section | Status | |---------|-----------|----------------|--------| | `handleActivateObject` | `test-activate-object.js` | `activate_object` | ✅ | | `handleCheckObject` | `test-check-object.js` | `check_object` | ✅ | | `handleSearchObject` | `test-search-object.js` | `search_object` | ✅ | | `handleDescribeByList` | `test-describe-by-list.test.js` | ❌ | ⚠️ No config | **Coverage**: 3/4 (75%) with config, 4/4 (100%) with test files ## Missing Test Config Sections The following handlers have test files but are missing from `test-config.yaml`: 1. **Create Operations**: - `create_table` (handler: `handleCreateTable`) - `create_structure` (handler: `handleCreateStructure`) - `create_view` (handler: `handleCreateView`) 2. **Update Operations**: - `update_view_source` (handler: `handleUpdateViewSource`) 3. **Get Operations**: - `get_prog_full_code` (handler: `handleGetProgFullCode`) - `get_all_types` (handler: `handleGetAllTypes`) - `get_enhancement_spot` (handler: `handleGetEnhancementSpot`) - `get_enhancement_impl` (handler: `handleGetEnhancementImpl`) - `get_bdef` (handler: `handleGetBdef`) - `get_includes_list` (handler: `handleGetIncludesList`) - `get_object_structure` (handler: `handleGetObjectStructure`) - `get_objects_by_type` (handler: `handleGetObjectsByType`) - `get_objects_list` (handler: `handleGetObjectsList`) - `get_object_node_from_cache` (handler: `handleGetObjectNodeFromCache`) - `get_abap_system_symbols` (handler: `handleGetAbapSystemSymbols`) 4. **Utility Operations**: - `describe_by_list` (handler: `handleDescribeByList`) ## Test Coverage Statistics ### By Operation Type | Operation Type | Handlers | With Config | With Test Files | Config Coverage | |----------------|----------|-------------|-----------------|-----------------| | CREATE | 12 | 12 | 12 | 100% | | UPDATE | 7 | 7 | 7 | 100% | | GET/READ | 33 | 19 | 33 | 58% | | DELETE | 1 | 1 | 1 | 100% | | UTILITY | 4 | 3 | 4 | 75% | | **TOTAL** | **57** | **42** | **57** | **74%** | ### Overall Coverage - **Handlers with test files**: 57/57 (100%) - **Handlers with test-config.yaml sections**: 42/57 (74%) ⬆️ (was 60%) - **Critical path coverage** (Create → Update → Get → Delete): ✅ Fully covered - **Cloud vs S4HANA**: Tests support both environments (Cloud: FUGR/CLAS, S4HANA: PROG/P with enabled: false) ## Recommendations ### High Priority 1. ✅ **Add missing CREATE configs**: `create_table`, `create_structure`, `create_view` - **COMPLETED** 2. ✅ **Add missing UPDATE configs**: `update_view_source` - **COMPLETED** 3. ✅ **Add missing GET configs for commonly used handlers**: - ✅ `get_prog_full_code` - **COMPLETED** - ✅ `get_includes_list` - **COMPLETED** - ✅ `get_objects_list` - **COMPLETED** - ✅ `get_object_structure` - **COMPLETED** ### Medium Priority 4. **Add GET configs for enhancement-related handlers**: - `get_enhancement_spot` - `get_enhancement_impl` 5. **Add GET configs for advanced handlers**: - `get_all_types` - `get_bdef` - `get_objects_by_type` - `get_object_node_from_cache` - `get_abap_system_symbols` ### Low Priority 6. **Add utility config**: `describe_by_list` ## Notes - All handlers have corresponding test files - Critical CRUD operations are fully covered in test-config.yaml - Some handlers are tested via integration tests or manual test files - Test-config.yaml focuses on automated test suite execution - Some handlers may not need config if they're only used in specific scenarios

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/fr0ster/mcp-abap-adt'

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