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

Copy link
Copy Markdown
Contributor

Copilot AI commented May 17, 2026

  • 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

Copilot AI linked an issue May 17, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Use WebApplicationFactory to run integration tests Migrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from build May 17, 2026
Copilot AI requested a review from xperiandri May 17, 2026 01:02
@xperiandri xperiandri changed the title Migrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from build Migrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from build May 17, 2026
@xperiandri xperiandri force-pushed the copilot/use-webapplicationfactory-integration-tests branch from 0a5c2fe to 26c0f41 Compare May 17, 2026 13:11
Comment thread tests/FSharp.Data.GraphQL.IntegrationTests/SwapiRemoteProviderTests.fs Outdated
Comment thread build/Program.fs
Comment thread build/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
Contributor Author

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.

Copilot AI and others added 11 commits May 17, 2026 17:15
@xperiandri xperiandri force-pushed the copilot/use-webapplicationfactory-integration-tests branch from ab0166f to 5867d45 Compare May 17, 2026 15:15
Copilot AI and 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>
Copilot AI requested a review from xperiandri May 17, 2026 15:33
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
Contributor Author

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
Contributor Author

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.

Copilot AI requested a review from xperiandri May 17, 2026 16:25
@xperiandri xperiandri marked this pull request as ready for review May 17, 2026 17:25
@xperiandri xperiandri merged commit 5f5eff4 into dev May 17, 2026
3 checks passed
@xperiandri xperiandri deleted the copilot/use-webapplicationfactory-integration-tests branch May 17, 2026 17:50
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.

Use WebApplicationFactory to run integration test hosts

3 participants