test: raise integrations package coverage above 80%#365
Merged
Conversation
There was a problem hiding this comment.
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, anduipath-agent-framework. - Removed placeholder tests in
uipath-openai-agentsin favor of meaningful behavioral tests. - Updated
uipath-llamaindexdev 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.
radu-mocanu
force-pushed
the
chore/increase-integrations-coverage
branch
from
July 21, 2026 12:30
728bb98 to
1ae4fcc
Compare
radu-mocanu
force-pushed
the
chore/increase-integrations-coverage
branch
from
July 21, 2026 12:35
1ae4fcc to
1abc7bd
Compare
|
cristipufu
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary