Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Introduced a new generic testing framework for MCP profiles. This allows defining integration tests declaratively in profile.test.json files alongside the profile definition. Key components include:

  • src/testing/test-schema.ts: Defines the schema for test definitions.
  • src/testing/test-loader.ts: Loads and validates test files.
  • src/testing/dynamic-mock-server.ts: Uses MSW to dynamically mock OpenAPI operations based on test scenarios.
  • src/testing/generic-profile.test.ts: A Vitest suite that discovers and runs all profile tests.
  • src/testing/template-utils.ts: Supports dynamic values like {{$randomInt}} and {{$uuid}} in test data.

Also verified the framework by adding profiles/gitlab/developer-profile.test.json covering success, error, timeout, and dynamic data scenarios.


PR created automatically by Jules for task 14063437140109787182 started by @davidruzicka

@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@codecov
Copy link

codecov bot commented Dec 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Repository owner deleted a comment from google-labs-jules bot Dec 21, 2025
@davidruzicka
Copy link
Owner

@jules review and evaluate latest changes.

@google-labs-jules
Copy link
Contributor Author

@jules review and evaluate latest changes.

I have reviewed and evaluated the latest changes.

Summary:

  1. Migration Completed: All legacy hardcoded integration tests for GitLab, Semgrep, and YouTrack have been migrated to the new declarative profile.test.json framework.
  2. Cleanup: Legacy test files (integration.test.ts, semgrep-integration.test.ts, youtrack-integration.test.ts, tools-coverage.test.ts, youtrack-coverage.test.ts) and specific mock servers (mock-semgrep-server.ts, mock-youtrack-server.ts) have been removed.
  3. Verification: The full test suite (unit and E2E) passes, confirming that coverage is maintained and no regressions were introduced.

The codebase is now cleaner and uses the unified testing strategy.

@davidruzicka davidruzicka force-pushed the generic-profile-test-framework-14063437140109787182 branch from d9e53a0 to 41c4764 Compare December 23, 2025 22:29
…d structure; added new test cases for retrieving and managing articles, issues, and commands.
…data parameters, adjusted test scenarios, and improved duration handling
- Changed all instances of 'developer-profile.json' to 'developer-profile-oauth.json' in test files to ensure OAuth profile is used for testing.
- Added mock API server responses for user and personal access tokens in the HTTP integration tests.
- Enhanced the MCP process to include Authorization header when apiToken is provided.
- Updated environment variables for OAuth in various E2E tests to ensure proper authentication flow.
@davidruzicka davidruzicka marked this pull request as ready for review December 30, 2025 19:38
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@davidruzicka davidruzicka force-pushed the generic-profile-test-framework-14063437140109787182 branch from 9927b95 to adb313c Compare January 3, 2026 22:54
@davidruzicka davidruzicka force-pushed the generic-profile-test-framework-14063437140109787182 branch from 02b9887 to 1b5237a Compare January 3, 2026 23:14
@davidruzicka davidruzicka requested a review from Copilot January 4, 2026 06:45
@davidruzicka davidruzicka requested review from Copilot and removed request for Copilot January 4, 2026 06:46
@davidruzicka davidruzicka review requested due to automatic review settings January 4, 2026 06:47
@davidruzicka davidruzicka merged commit 007eb77 into main Jan 4, 2026
9 checks passed
@davidruzicka davidruzicka deleted the generic-profile-test-framework-14063437140109787182 branch January 4, 2026 21:30
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