Skip to content

refactor(0026): Phase 7 (part 2a) — split Agent.Tests per src - #287

Merged
ChrisonSimtian merged 1 commit into
mainfrom
refactor/282-test-split-agent
May 29, 2026
Merged

refactor(0026): Phase 7 (part 2a) — split Agent.Tests per src#287
ChrisonSimtian merged 1 commit into
mainfrom
refactor/282-test-split-agent

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator

Part 2a of #282 (ADR-0026 phase 7). Mirrors the 5b src-side Agent split.

test/Agent.Tests divided to match the two src projects it covered:

Tests New project References
AgentConfigWriterTests, LogTailReaderTests, PairingUrlParserTests test/Presentation/Agent/Erp.Presentation.Agent.Common.Tests Erp.Presentation.Agent.Common
SaveFolderResolverTests test/Presentation/Agent/Satisfactory.Presentation.Agent.Tests Satisfactory.Presentation.Agent
  • Namespaces Agent.Tests → the two new ones; dropped the now-vestigial using Satisfactory.Presentation.Agent; from the Common tests (verified none reference a Satisfactory-only type).
  • slnx updated.
  • Verified: 23 Common + 4 Satisfactory = 27 tests pass (matches the original count).

Note: ApiService split is separate (part 2b)

While scoping this I found ApiService.Tests was silently dropped from the solution during the 5c1/5c2 API refactor — so #276/#277 merged green without those 14 integration tests running. They currently fail with a FOREIGN KEY constraint failed: the fixtures' DI-minted AgentToken references a dev-Player row that no longer exists, because DevPlayerBootstrap moved to the Auth API in 5c2. That's a fixture fix + re-add, not a mechanical move — tracked for its own PR per discussion.

🤖 Generated with Claude Code

Mirrors the 5b src-side Agent split. test/Agent.Tests divided to match the two
src projects it covered:

- AgentConfigWriterTests, LogTailReaderTests, PairingUrlParserTests ->
  test/Presentation/Agent/Erp.Presentation.Agent.Common.Tests (references
  Erp.Presentation.Agent.Common only).
- SaveFolderResolverTests ->
  test/Presentation/Agent/Satisfactory.Presentation.Agent.Tests (references
  Satisfactory.Presentation.Agent).

Namespaces updated Agent.Tests -> the two new ones; dropped the now-vestigial
`using Satisfactory.Presentation.Agent;` from the Common tests (verified none
reference a Satisfactory-only type). slnx updated.

Verified: 23 Common + 4 Satisfactory = 27 tests pass (matches the original
Agent.Tests count).

The ApiService.Tests split is deliberately separate (part 2b) — it surfaced
that ApiService.Tests was dropped from the solution during 5c1/5c2, hiding 14
failing integration tests (dev-Player FK gone after the Auth extraction); that
needs a fixture fix, not a mechanical move.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ChrisonSimtian
ChrisonSimtian merged commit 3e6a5be into main May 29, 2026
13 checks passed
@ChrisonSimtian
ChrisonSimtian deleted the refactor/282-test-split-agent branch May 29, 2026 01:06
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.

1 participant