Skip to content

Add test coverage npm command#121

Merged
kalenkevich merged 1 commit into
mainfrom
chore/test_coverage_tool
Feb 6, 2026
Merged

Add test coverage npm command#121
kalenkevich merged 1 commit into
mainfrom
chore/test_coverage_tool

Conversation

@kalenkevich
Copy link
Copy Markdown
Collaborator

@kalenkevich kalenkevich commented Feb 6, 2026

Add test coverage npm command

Current state is pretty low:

-----------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------
File                               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                                                                               
-----------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------
All files                          |   53.28 |    76.62 |   59.58 |   53.28 |                                                                                                 
 core/src                          |   96.82 |        0 |       0 |   96.82 |                                                                                                 
  common.ts                        |     100 |      100 |     100 |     100 |                                                                                                 
  index.ts                         |     100 |      100 |     100 |     100 |                                                                                                 
  index_web.ts                     |       0 |        0 |       0 |       0 | 1-7                                                                                             
  version.ts                       |     100 |      100 |     100 |     100 |                                                                                                 
 core/src/agents                   |   56.19 |    69.23 |   68.54 |   56.19 |                                                                                                 
  active_streaming_tool.ts         |   57.14 |      100 |       0 |   57.14 | 34-36                                                                                           
  base_agent.ts                    |   58.76 |    68.57 |   92.85 |   58.76 | 184-185,188-189,197-198,203-204,220-236,320-346,363-387,393-400,415-420,423-426                 
  base_llm_processor.ts            |     100 |      100 |     100 |     100 |                                                                                                 
  callback_context.ts              |   44.68 |      100 |      25 |   44.68 | 42-43,54-65,75-89                                                                               
  content_processor_utils.ts       |   53.39 |    59.61 |      80 |   53.39 | ...,154-155,180-181,196-198,210-211,248-289,296-297,324,328-396,422-423,458-459,465-470,484-485 
  functions.ts                     |   86.08 |    72.05 |     100 |   86.08 | ...9-60,105,107-108,248,347-348,416-417,457-458,466-467,494-495,501-517,534-537,558-559,564-585 
  instructions.ts                  |   25.64 |    66.66 |      25 |   25.64 | 49-90,98-102,119-125,137-149                                                                    
  invocation_context.ts            |   83.33 |     87.5 |   71.42 |   83.33 | 68-71,212-213,219-220                                                                           
  live_request_queue.ts            |    90.9 |    91.66 |     100 |    90.9 | 77-78,83-86                                                                                     
  llm_agent.ts                     |   48.08 |     64.1 |   66.66 |   48.08 | ...54-1760,1768-1769,1771-1772,1813-1814,1823-1824,1833-1834,1842-1846,1862-1871,1904,2046-2048 
  loop_agent.ts                    |   44.18 |      100 |      50 |   44.18 | 64-88,92-95                                                                                     
  parallel_agent.ts                |   25.39 |      100 |   33.33 |   25.39 | 48-57,61-64,70-125                                                                              
  readonly_context.ts              |      45 |      100 |      20 |      45 | 23-24,30-31,37-38,44-48                                                                         
  run_config.ts                    |   72.41 |       60 |     100 |   72.41 | 111-114,117-120                                                                                 
  sequential_agent.ts              |   35.59 |      100 |      50 |   35.59 | 48-55,69-100                                                                                    
  transcription_entry.ts           |       0 |        0 |       0 |       0 | 1                                                                                               
 core/src/artifacts                |   45.97 |    76.47 |   53.33 |   45.97 |                                                                                                 
  base_artifact_service.ts         |     100 |      100 |     100 |     100 |                                                                                                 
  gcs_artifact_service.ts          |     9.9 |      100 |       0 |     9.9 | 23-24,27-53,56-86,89-105,108-124,127-136,139-150                                                
  in_memory_artifact_service.ts    |   85.85 |    76.47 |     100 |   85.85 | 74-81,94-95,111-112,139-140                                                                     
 core/src/auth                     |   17.28 |    33.33 |       0 |   17.28 |                                                                                                 
  auth_credential.ts               |     100 |      100 |     100 |     100 |                                                                                                 
  auth_handler.ts                  |      14 |      100 |       0 |      14 | 22-25,28-72,82-84                                                                               
  auth_schemes.ts                  |       0 |        0 |       0 |       0 | 1-67                                                                                            
  auth_tool.ts                     |       0 |        0 |       0 |       0 | 1                                                                                               
 core/src/auth/credential_service  |       0 |        0 |       0 |       0 |                                                                                                 
  base_credential_service.ts       |       0 |        0 |       0 |       0 | 1                                                                                               
  in_memory_credential_service.ts  |       0 |        0 |       0 |       0 | 1-59                                                                                            
 core/src/auth/exchanger           |   88.88 |       75 |      75 |   88.88 |                                                                                                 
  base_credential_exchanger.ts     |       0 |        0 |       0 |       0 | 1-13                                                                                            
  credential_exchanger_registry.ts |     100 |      100 |     100 |     100 |                                                                                                 
 core/src/code_executors           |   27.01 |      100 |      16 |   27.01 |                                                                                                 
  base_code_executor.ts            |   72.72 |      100 |      50 |   72.72 | 38-44                                                                                           
  built_in_code_executor.ts        |   77.77 |      100 |      75 |   77.77 | 26-34                                                                                           
  code_execution_utils.ts          |    7.75 |      100 |       0 |    7.75 | 78-79,98-155,164-171,180-208,221-247                                                            
  code_executor_context.ts         |   21.62 |      100 |       0 |   21.62 | ...-58,65-70,77-78,85-90,97-102,109-114,121-126,129-136,144-153,160-167,174-186,197-220,227-228 
 core/src/events                   |   63.41 |    90.47 |   77.77 |   63.41 |                                                                                                 
  event.ts                         |   87.83 |       90 |   85.71 |   87.83 | 93-94,145-146,155-160                                                                           
  event_actions.ts                 |   26.53 |      100 |      50 |   26.53 | 89-128                                                                                          
 core/src/examples                 |    7.21 |        0 |       0 |    7.21 |                                                                                                 
  base_example_provider.ts         |   43.75 |      100 |       0 |   43.75 | 23-31,42                                                                                        
  example.ts                       |       0 |        0 |       0 |       0 | 1                                                                                               
  example_util.ts                  |       0 |        0 |       0 |       0 | 1-103                                                                                           
 core/src/memory                   |   14.51 |       50 |   14.28 |   14.51 |                                                                                                 
  base_memory_service.ts           |     100 |      100 |     100 |     100 |                                                                                                 
  in_memory_memory_service.ts      |   13.33 |      100 |   16.66 |   13.33 | 29-36,39-76,86-110                                                                              
  memory_entry.ts                  |       0 |        0 |       0 |       0 | 1                                                                                               
 core/src/models                   |   43.46 |    63.15 |      60 |   43.46 |                                                                                                 
  base_llm.ts                      |    61.7 |       80 |     100 |    61.7 | 96-104,107-115                                                                                  
  base_llm_connection.ts           |       0 |        0 |       0 |       0 | 1                                                                                               
  gemini_llm_connection.ts         |   19.64 |      100 |       0 |   19.64 | 29-41,53-72,80-82,94-100,105-106,112-113                                                        
  google_llm.ts                    |   36.43 |       40 |      60 |   36.43 | 96-98,102-117,120-122,124-127,168-172,175-241,253-276,281,288-293,296-306,318-350,377-378       
  llm_request.ts                   |   31.91 |    66.66 |   33.33 |   31.91 | 55-56,70-92,100-108                                                                             
  llm_response.ts                  |   42.85 |       50 |     100 |   42.85 | 116-138                                                                                         
  registry.ts                      |    85.5 |    80.95 |     100 |    85.5 | 45-49,79-82,126                                                                                 
 core/src/plugins                  |   48.41 |      100 |   55.76 |   48.41 |                                                                                                 
  base_plugin.ts                   |     100 |      100 |     100 |     100 |                                                                                                 
  logging_plugin.ts                |    9.77 |      100 |       0 |    9.77 | ...-133,136-148,151-160,163-187,190-219,222-236,239-254,257-269,272-289,292-294,297-321,324-333 
  plugin_manager.ts                |     100 |      100 |     100 |     100 |                                                                                                 
  security_plugin.ts               |   17.05 |      100 |       0 |   17.05 | 56-60,73-75,78-114,117-129,132-146,149-183,192-209                                              
 core/src/runner                   |   77.77 |    82.75 |   85.71 |   77.77 |                                                                                                 
  in_memory_runner.ts              |     100 |      100 |     100 |     100 |                                                                                                 
  runner.ts                        |    75.8 |    82.45 |   83.33 |    75.8 | 125-137,169-170,176-182,272-300,340-344,370-371,390-391,407-408,416-417                         
 core/src/sessions                 |   62.85 |    55.26 |   61.11 |   62.85 |                                                                                                 
  base_session_service.ts          |   73.91 |       50 |     100 |   73.91 | 142-143,158-159,162-163                                                                         
  in_memory_session_service.ts     |   62.42 |    53.84 |    87.5 |   62.42 | 93-110,123-137,148-149,166-167,170-172,175-177,180-182,187-190,193-198,216-220,226-230          
  session.ts                       |     100 |       60 |     100 |     100 | 60,62                                                                                           
  state.ts                         |   44.44 |      100 |   14.28 |   44.44 | 32-41,50-52,58-59,65-66,74-76,82-83                                                             
 core/src/telemetry                |   88.56 |    83.13 |   94.11 |   88.56 |                                                                                                 
  google_cloud.ts                  |     100 |      100 |     100 |     100 |                                                                                                 
  setup.ts                         |     100 |    95.45 |     100 |     100 | 73                                                                                              
  tracing.ts                       |   81.25 |    73.46 |      90 |   81.25 | 50-51,124,150,191,230,251-255,258-262,266-271,292-311,340-341                                   
 core/src/tools                    |   42.89 |    70.83 |   32.43 |   42.89 |                                                                                                 
  agent_tool.ts                    |   15.31 |      100 |       0 |   15.31 | 47-53,73-79,82-117,120-182                                                                      
  base_tool.ts                     |   84.31 |       70 |   66.66 |   84.31 | 95-96,123-124,131-132,148-149                                                                   
  base_toolset.ts                  |      30 |      100 |       0 |      30 | 60-73,88-90                                                                                     
  forwarding_artifact_service.ts   |   29.03 |      100 |       0 |   29.03 | 27-28,33-34,37-38,41-42,45-52,55-62                                                             
  function_tool.ts                 |   87.69 |    63.63 |     100 |   87.69 | 65-66,72-73,113-116                                                                             
  google_search_tool.ts            |   26.82 |      100 |   33.33 |   26.82 | 27-28,31-65                                                                                     
  long_running_tool.ts             |   44.44 |      100 |       0 |   44.44 | 36-37,43-50                                                                                     
  tool_confirmation.ts             |   30.76 |      100 |       0 |   30.76 | 25-36                                                                                           
  tool_context.ts                  |   34.48 |      100 |   28.57 |   34.48 | 55-62,71-74,82-91,101-110,116-125                                                               
 core/src/tools/mcp                |   61.95 |     87.5 |      25 |   61.95 |                                                                                                 
  mcp_session_manager.ts           |   92.85 |     87.5 |     100 |   92.85 | 111-113                                                                                         
  mcp_tool.ts                      |   33.33 |      100 |       0 |   33.33 | 38-41,44-52,55-61                                                                               
  mcp_toolset.ts                   |   38.46 |      100 |       0 |   38.46 | 44-49,52-64                                                                                     
 core/src/utils                    |   81.73 |    88.33 |   75.55 |   81.73 |                                                                                                 
  client_labels.ts                 |     100 |       75 |     100 |     100 | 29                                                                                              
  env_aware_utils.ts               |   57.89 |      100 |      40 |   57.89 | 43-49,58-64,73-78                                                                               
  gemini_schema_util.ts            |   93.15 |    82.14 |     100 |   93.15 | 28,30,36,42-43                                                                                  
  logger.ts                        |   70.09 |     90.9 |      80 |   70.09 | 44-64,71,83-88,92-93,158-159,167-168                                                            
  model_name.ts                    |   76.19 |    81.25 |      60 |   76.19 | 20-21,34-37,67-70,80-81                                                                         
  simple_zod_to_json.ts            |    95.8 |    92.85 |     100 |    95.8 | 55-56,129-130,192-193                                                                           
  variant_utils.ts                 |   31.25 |      100 |       0 |   31.25 | 28-47                                                                                           
 dev/src                           |       0 |        0 |       0 |       0 |                                                                                                 
  version.ts                       |       0 |        0 |       0 |       0 | 1-8                                                                                             
 dev/src/cli                       |       0 |       25 |      25 |       0 |                                                                                                 
  cli.ts                           |       0 |      100 |     100 |       0 | 2-361                                                                                           
  cli_create.ts                    |       0 |        0 |       0 |       0 | 1-316                                                                                           
  cli_deploy.ts                    |       0 |        0 |       0 |       0 | 1-340                                                                                           
  cli_run.ts                       |       0 |        0 |       0 |       0 | 1-243                                                                                           
 dev/src/server                    |    83.1 |    75.83 |   82.35 |    83.1 |                                                                                                 
  adk_web_server.ts                |    83.8 |    69.51 |   57.14 |    83.8 | ...-531,535,541-542,548-549,555-556,562-563,569-570,576-577,585-586,590,594,673,682-695,698-716 
  agent_graph.ts                   |   81.52 |    83.58 |     100 |   81.52 | 37-38,56-57,78-79,82-86,101-109,166-173,204-205,237-238,250-261,273-280                         
 dev/src/utils                     |   77.26 |    85.45 |   76.19 |   77.26 |                                                                                                 
  agent_loader.ts                  |   85.32 |    88.88 |   94.11 |   85.32 | 182-183,217-230,288-292,310-314,349-350,352-353,359-360,371-373,379-385                         
  file_utils.ts                    |      80 |    90.47 |      80 |      80 | 35-50,57-60,95-98                                                                               
  telemetry_utils.ts               |   60.14 |     64.7 |   53.33 |   60.14 | 22-23,47-55,61-62,65-66,90-91,100-101,104-105,110-111,118-119,138,140,149-184                   
-----------------------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------

@kalenkevich kalenkevich self-assigned this Feb 6, 2026
@kalenkevich kalenkevich force-pushed the chore/test_coverage_tool branch 3 times, most recently from e158a2d to 1dc003f Compare February 6, 2026 00:34
Comment thread .github/workflows/validation.yaml
Copy link
Copy Markdown
Member

@ScottMansfield ScottMansfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending a comment

Comment thread vitest.config.ts
@kalenkevich kalenkevich force-pushed the chore/test_coverage_tool branch from 1dc003f to f06dcc9 Compare February 6, 2026 21:25
@kalenkevich kalenkevich merged commit 24c9109 into main Feb 6, 2026
6 checks passed
@kalenkevich kalenkevich deleted the chore/test_coverage_tool branch February 6, 2026 21:47
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.

2 participants