Skip to content

Migrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from build - #564

Merged
xperiandri merged 23 commits into
devfrom
copilot/use-webapplicationfactory-integration-tests
May 17, 2026
Merged

Migrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from build#564
xperiandri merged 23 commits into
devfrom
copilot/use-webapplicationfactory-integration-tests

Conversation

CopilotAI commented May 17, 2026

Copy link
Copy Markdown
Contributor
  • Review the new PR comments and identify the requested reverts
  • Inspect current branch state and recent build/workflow status
  • Revert the sample-local introspection.json addition and related project wiring
  • Point the StarWars sample back to the introspection file maintained by tests
  • Run targeted build validation for the affected .slnx/sample files
  • Reply to the new review comments with the addressing commit hash

CopilotAI linked an issue May 17, 2026 that may be closed by this pull request
CopilotAI changed the title [WIP] Use WebApplicationFactory to run integration testsMigrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from buildMay 17, 2026
CopilotAI requested a review from xperiandriMay 17, 2026 01:02
@xperiandrixperiandri changed the title Migrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from buildMigrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from buildMay 17, 2026
@xperiandri
xperiandriforce-pushed the copilot/use-webapplicationfactory-integration-tests branch from 0a5c2fe to 26c0f41CompareMay 17, 2026 13:11
Comment threadtests/FSharp.Data.GraphQL.IntegrationTests/SwapiRemoteProviderTests.fs Outdated
Comment threadbuild/Program.fs
Comment threadbuild/Program.fs
==> StartStarWarsServerTarget
==> BuildIntegrationTestServerTarget
==> StartIntegrationServerTarget
==> UpdateIntrospectionFileTarget

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot мне кажется что обновлять introspection всё таки нужно

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Вернул обновление introspection в дефолтную цепочку: добавил StartStarWarsServerTarget и UpdateIntrospectionFileTarget перед All в build/Program.fs. Коммит: 038c282.

CopilotAIand others added 8 commits May 17, 2026 17:15
@xperiandri
xperiandriforce-pushed the copilot/use-webapplicationfactory-integration-tests branch from ab0166f to 5867d45CompareMay 17, 2026 15:15
CopilotAIand others added 2 commits May 17, 2026 15:28
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/89e5acaf-53c4-4e34-b7ed-ce34b90af854
Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot revert

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Reverted in 5179f08.


type GraphQLApi = GraphQLProvider<"http://localhost:8086">
[<Literal>]
let IntrospectionPath = "introspection.json"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot это херня! Как этот файл обновляться будет???
Сошлись на этот файл в тестах

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Исправил: sample снова ссылается на ../../../tests/FSharp.Data.GraphQL.IntegrationTests/introspection.json, локальный snapshot убран. Коммит: 5179f08.

@xperiandri
xperiandri marked this pull request as ready for review May 17, 2026 17:25
@xperiandri
xperiandri merged commit 5f5eff4 into devMay 17, 2026
3 checks passed
@xperiandri
xperiandri deleted the copilot/use-webapplicationfactory-integration-tests branch May 17, 2026 17:50
xperiandri added a commit that referenced this pull request Jun 13, 2026
…ory` and remove external server orchestration from build (#564)
Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Andrii Chebukin <XperiAndri@Outlook.com>
xperiandri added a commit that referenced this pull request Jun 13, 2026
…ory` and remove external server orchestration from build (#564)
Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Andrii Chebukin <XperiAndri@Outlook.com>
xperiandri added a commit to xperiandri/FSharp.Data.GraphQL that referenced this pull request Jul 17, 2026
…ory` and remove external server orchestration from build (fsprojects#564)
Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Andrii Chebukin <XperiAndri@Outlook.com>
Sign up for freeto 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.

Use WebApplicationFactory to run integration test hosts

3 participants

@xperiandri@Juriyx