Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add simple e2e test#330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
williammartin merged 1 commit intomainfromwm/add-e2e-test
Apr 22, 2025
Merged

Add simple e2e test#330

williammartin merged 1 commit intomainfromwm/add-e2e-test
Apr 22, 2025

Conversation

williammartin
Copy link
Collaborator

@williammartinwilliammartin commentedApr 22, 2025
edited
Loading

Description

Whilst reviewing dependabot updates, I really wanted a fast way to build a Docker image, start the server, call a tool and validate the result, as opposed todoing it manually.

The primary audience for the current e2e test is myself, and any other maintainer, and in future possibly other contributors. See the readme for some limitations on the approach, which is why I don't necessarily want to make all contributors first class audience, though there's no reason that it couldn't be used.

The implementation is pretty MVP, and that's also intentional, until we see if and where it provides value.

juruen reacted with heart emoji
@CopilotCopilotAI review requested due to automatic review settingsApril 22, 2025 15:36
@williammartinwilliammartin requested a review froma team as acode ownerApril 22, 2025 15:36
Copy link
Contributor

@CopilotCopilotAI left a 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 a basic end-to-end (e2e) test to simplify validation of the MCP server Docker image and its GitHub API integration. Key changes include:

  • A new e2e test written in Go to verify server initialization and the "get_me" tool.
  • A helper function to build the Docker image before running tests.
  • Documentation updates in the README on how to run the e2e tests.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

FileDescription
e2e/e2e_test.goAdded e2e tests that build the Docker image, initialize the client, and validate GitHub API responses.
e2e/README.mdAdded documentation on the purpose and usage of the e2e tests.
Comments suppressed due to low confidence (1)

e2e/e2e_test.go:84

  • Consider renaming this new GitHub API client variable (for example, to ghClient) to avoid shadowing the existing 'client' variable, improving code clarity.
client := github.NewClient(nil).WithAuthToken(e2eServerToken)

toby
toby previously approved these changesApr 22, 2025
@williammartin
Copy link
CollaboratorAuthor

Bypassing codeowner review rule because the only change I made after review from@toby was to expand e2e to End to End in the README.

SamMorrowDrums reacted with heart emoji

@williammartinwilliammartin merged commit56b23c3 intomainApr 22, 2025
16 checks passed
@williammartinwilliammartin deleted the wm/add-e2e-test branchApril 22, 2025 16:20
@Samido254
Copy link

Impressed 😁

SamMorrowDrums reacted with rocket emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@tobytobytoby left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@williammartin@Samido254@toby

[8]ページ先頭

©2009-2025 Movatter.jp