Skip to content

test: raise integrations package coverage above 80%#365

Merged
radu-mocanu merged 1 commit into
mainfrom
chore/increase-integrations-coverage
Jul 21, 2026
Merged

test: raise integrations package coverage above 80%#365
radu-mocanu merged 1 commit into
mainfrom
chore/increase-integrations-coverage

Conversation

@radu-mocanu

@radu-mocanu radu-mocanu commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add unit tests across google-adk, llamaindex, pydantic-ai, openai-agents, and agent-framework
  • llamaindex: add bedrock/vertex/google-genai backends to the dev group so those LLM modules are tested for real instead of mocked away

Copilot AI review requested due to automatic review settings July 21, 2026 11:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds substantial unit-test coverage across multiple integration packages to push overall coverage above the 80% bar, plus updates LlamaIndex dev dependencies so optional LLM backends can be imported during test collection.

Changes:

  • Added unit tests covering loaders, runtime factories, chat clients/transports, and CLI scaffolding middleware across uipath-pydantic-ai, uipath-openai-agents, uipath-llamaindex, uipath-google-adk, and uipath-agent-framework.
  • Removed placeholder tests in uipath-openai-agents in favor of meaningful behavioral tests.
  • Updated uipath-llamaindex dev dependencies (and lockfile) to include optional backend packages needed for LLM-related tests.

Reviewed changes

Copilot reviewed 39 out of 45 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/uipath-pydantic-ai/tests/test_loader.py New tests for agent path parsing, loader success cases, and loader error handling.
packages/uipath-pydantic-ai/tests/test_factory_runtime.py New tests for runtime factory discovery, agent loading, caching, and disposal behavior.
packages/uipath-pydantic-ai/tests/test_cli_new.py New tests for uipath new scaffolding middleware success/failure paths.
packages/uipath-pydantic-ai/tests/test_chat.py New tests for lazy exports, supported model enums, URL rewriting, and client header/base URL building.
packages/uipath-openai-agents/tests/test_runtime.py New tests for runtime execute/stream behavior, event conversion, input prep, error mapping, and schema.
packages/uipath-openai-agents/tests/test_placeholder.py Removes placeholder test file now that real tests exist.
packages/uipath-openai-agents/tests/test_factory.py New tests for runtime factory entrypoint discovery, agent loading, caching, and disposal.
packages/uipath-openai-agents/tests/test_config.py New tests for config parsing and validation behavior.
packages/uipath-openai-agents/tests/test_cli_new.py New tests for uipath new scaffolding middleware for OpenAI agents.
packages/uipath-openai-agents/tests/test_chat_openai.py New tests for chat URL rewriting and client construction preconditions/headers.
packages/uipath-openai-agents/tests/test_agent_loader.py New tests for agent loader parsing, safety checks, and async context manager cleanup.
packages/uipath-llamaindex/uv.lock Updates lockfile to include optional backend dev dependencies.
packages/uipath-llamaindex/tests/runtime/test_workflow_loader.py New tests for workflow loader parsing, load validation, resolution, and cleanup.
packages/uipath-llamaindex/tests/runtime/test_telemetry.py New tests for OTel span attribute normalization behavior.
packages/uipath-llamaindex/tests/runtime/test_errors.py New tests for structured runtime error fields and formatting.
packages/uipath-llamaindex/tests/runtime/test_config.py New tests for config parsing/validation and error handling.
packages/uipath-llamaindex/tests/runtime/test_breakpoints.py New tests for breakpoint wrapper behavior and resume event type.
packages/uipath-llamaindex/tests/retrievers/test_context_grounding_retriever.py New tests for sync/async retrieval mapping and UiPath SDK calls.
packages/uipath-llamaindex/tests/retrievers/init.py Adds package init for retriever tests.
packages/uipath-llamaindex/tests/query_engines/test_context_grounding_query_engine.py New tests for sync/async query execution flow.
packages/uipath-llamaindex/tests/query_engines/init.py Adds package init for query engine tests.
packages/uipath-llamaindex/tests/models/test_events.py New tests for event model inheritance/field behavior.
packages/uipath-llamaindex/tests/models/init.py Adds package init for model tests.
packages/uipath-llamaindex/tests/llms/test_vertex.py New tests for Vertex gateway rewriting and wrapper LLM behaviors.
packages/uipath-llamaindex/tests/llms/test_supported_models.py New tests validating supported model registries/identifiers.
packages/uipath-llamaindex/tests/llms/test_openai.py New tests for OpenAI URL-rewrite transports and gateway endpoint construction.
packages/uipath-llamaindex/tests/llms/test_bedrock.py New tests for Bedrock passthrough client URL/headers and LLM init defaults.
packages/uipath-llamaindex/tests/llms/init.py Adds package init for LLM tests.
packages/uipath-llamaindex/tests/embeddings/test_openai_embedding.py New tests for embedding gateway defaults and avoiding real network init.
packages/uipath-llamaindex/tests/embeddings/init.py Adds package init for embedding tests.
packages/uipath-llamaindex/pyproject.toml Adds optional backend packages to dev dependencies so LLM tests are importable/collectable.
packages/uipath-google-adk/tests/test_runtime.py New tests for runtime input prep, output extraction, result shaping, error mapping, execute/stream, schema.
packages/uipath-google-adk/tests/test_openai.py New tests for request/response conversion helpers and gateway streaming aggregation.
packages/uipath-google-adk/tests/test_messages.py New tests for message mapping and streaming event conversion.
packages/uipath-google-adk/tests/test_lazy_imports.py New tests for lazy imports and middleware registration behavior.
packages/uipath-google-adk/tests/test_gemini.py New tests for gateway request rewriting and api client construction.
packages/uipath-google-adk/tests/test_factory.py New tests for factory discovery, state file handling, caching, runtime creation, disposal.
packages/uipath-google-adk/tests/test_common.py New tests for shared config/header/url helpers.
packages/uipath-google-adk/tests/test_cli_new.py New tests for scaffolding generators and middleware pipeline stop behavior.
packages/uipath-agent-framework/tests/test_messages.py New tests for inbound/outbound message mapping and streaming/tool event handling.
packages/uipath-agent-framework/tests/test_loader.py New tests for agent loader parsing, safety checks, error mapping, resolution + cleanup.
packages/uipath-agent-framework/tests/test_cli_new.py New tests for scaffold generation, middleware output, and error reporting behavior.
packages/uipath-agent-framework/tests/test_chat_module.py New tests for lazy exports and requires_approval decorator behavior.
packages/uipath-agent-framework/tests/test_chat_common.py New tests for shared config/header/url helpers.
packages/uipath-agent-framework/tests/test_chat_clients.py New tests for gateway transports and tool normalization (plus one test robustness fix needed).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/uipath-agent-framework/tests/test_chat_clients.py Outdated
@radu-mocanu
radu-mocanu force-pushed the chore/increase-integrations-coverage branch from 728bb98 to 1ae4fcc Compare July 21, 2026 12:30
@radu-mocanu
radu-mocanu force-pushed the chore/increase-integrations-coverage branch from 1ae4fcc to 1abc7bd Compare July 21, 2026 12:35
@sonarqubecloud

Copy link
Copy Markdown

@radu-mocanu
radu-mocanu merged commit 085c04d into main Jul 21, 2026
73 checks passed
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.

3 participants