This repository was archived by the owner on Nov 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
feat: integration tests for all tools #59
Merged
Merged
Conversation
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
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive integration tests for all tools that have been extracted from the server component. The tests validate the functionality of project management, organization management, feature flags, insights, dashboards, error tracking, LLM observability, and documentation tools. Additionally, it includes workflow tests that demonstrate complete CRUD operations.
Key Changes:
- Integration tests for all 8 tool categories (projects, organizations, feature flags, insights, dashboards, error tracking, LLM observability, and documentation)
- CRUD workflow tests to validate complete operations from creation to deletion
- Shared test utilities for environment setup, resource cleanup, and test data generation
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/tools/projects.integration.test.ts | Tests for project listing, activation, and property definitions tools |
| tests/tools/organizations.integration.test.ts | Tests for organization listing, activation, and details retrieval tools |
| tests/tools/featureFlags.integration.test.ts | Comprehensive CRUD tests for feature flag management tools |
| tests/tools/insights.integration.test.ts | Complete integration tests for insight creation, updates, and management |
| tests/tools/dashboards.integration.test.ts | CRUD workflow tests for dashboard management tools |
| tests/tools/errorTracking.integration.test.ts | Tests for error listing and details retrieval functionality |
| tests/tools/llmObservability.integration.test.ts | Tests for LLM cost tracking with various time periods |
| tests/tools/documentation.integration.test.ts | Tests for documentation search functionality |
| tests/shared/test-utils.ts | Shared utilities for test setup, cleanup, and data generation |
| src/tools/types.ts | Updated cache type from DurableObjectCache to ScopedCache |
jonathanlab
approved these changes
Jul 23, 2025
Collaborator
jonathanlab
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
This was referenced Sep 3, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
We've pulled out the tools from the server, so now it's fairly easy to test them, this adds integration tests for all tools, as well as a workflow test to test a round of CRUD changes.