Migrate integration tests to in-process hosts via WebApplicationFactory and remove external server orchestration from build#564
Merged
xperiandri merged 23 commits intoMay 17, 2026
Conversation
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
WebApplicationFactory and remove external server orchestration from build
0a5c2fe to
26c0f41
Compare
xperiandri
reviewed
May 17, 2026
xperiandri
reviewed
May 17, 2026
xperiandri
reviewed
May 17, 2026
xperiandri
reviewed
May 17, 2026
| ==> StartStarWarsServerTarget | ||
| ==> BuildIntegrationTestServerTarget | ||
| ==> StartIntegrationServerTarget | ||
| ==> UpdateIntrospectionFileTarget |
Collaborator
There was a problem hiding this comment.
@copilot мне кажется что обновлять introspection всё таки нужно
Contributor
Author
There was a problem hiding this comment.
Вернул обновление introspection в дефолтную цепочку: добавил StartStarWarsServerTarget и UpdateIntrospectionFileTarget перед All в build/Program.fs. Коммит: 038c282.
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/4998e0af-9a24-4088-a9a9-3318b08f3de9 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/e9009367-0c5a-44a7-986e-7b0cfa2a3f94 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/79103f2d-049f-4772-91c8-b1fc8f9d2000 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/627b62ae-6908-4700-b7a5-0f086062cb58 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/9c34412f-ef8d-4b05-8181-ef289781e3be Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/8c78aed3-f9e5-4eef-a936-0f3de0a59126 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/17ad608b-6898-4180-9667-6ac02942a225 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/9a7df672-dce9-4c9f-aafd-46ac6e2058c6 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
…tion Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/9a7df672-dce9-4c9f-aafd-46ac6e2058c6 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/9a7df672-dce9-4c9f-aafd-46ac6e2058c6 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/9a7df672-dce9-4c9f-aafd-46ac6e2058c6 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
ab0166f to
5867d45
Compare
xperiandri
approved these changes
May 17, 2026
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>
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>
xperiandri
requested changes
May 17, 2026
Contributor
Author
There was a problem hiding this comment.
Reverted in 5179f08.
|
|
||
| type GraphQLApi = GraphQLProvider<"http://localhost:8086"> | ||
| [<Literal>] | ||
| let IntrospectionPath = "introspection.json" |
Collaborator
There was a problem hiding this comment.
@copilot это херня! Как этот файл обновляться будет???
Сошлись на этот файл в тестах
Contributor
Author
There was a problem hiding this comment.
Исправил: sample снова ссылается на ../../../tests/FSharp.Data.GraphQL.IntegrationTests/introspection.json, локальный snapshot убран. Коммит: 5179f08.
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/99865a86-849d-4d63-bab8-4821c1ce69ac Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
xperiandri
approved these changes
May 17, 2026
Juriyx
approved these changes
May 17, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
introspection.jsonaddition and related project wiring.slnx/sample files