Skip to content

Feat/testrunner sample#27

Closed
Theauxm wants to merge 7 commits into
mainfrom
feat/testrunner-sample
Closed

Feat/testrunner sample#27
Theauxm wants to merge 7 commits into
mainfrom
feat/testrunner-sample

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 21, 2026

No description provided.

Theauxm added 7 commits March 19, 2026 14:24
Hub-pattern sample that discovers and runs NUnit test projects across the Trax
monorepo. Uses NUnit.Engine for in-process test execution, [TraxBroadcast] with
built-in onTrainCompleted subscriptions for streaming results, and a React + Apollo
Client frontend. Includes build toggle, dashboard integration, and unit tests.
…f real monorepo

Tests were scanning the real Trax monorepo filesystem which doesn't exist in CI.
Now creates a fake directory structure with synthetic .csproj files in a temp dir,
making the tests self-contained and CI-compatible.
…ture

The TestRunner now scans {root}/tests/ directly rather than {root}/*/tests/,
so it works when someone clones just Trax.Samples without the full monorepo
workspace. Config key renamed from TestRunner:MonorepoRoot to TestRunner:Root.
The TestRunner only scans the Trax.Samples repo which has no Postgres-requiring
test projects. Removes the PostgresProjects set, RequiresPostgres property, and
all frontend references to it.
- Remove unused RepoName from TestProject model, registry, query, types, and UI
- Remove orphaned .postgres-badge CSS and .project-repo CSS
- Remove unused workQueueId from mutation query
- Remove unused metadataId/trainState/timestamp from subscription queries
- Rename ScanMonorepoJunction to ScanProjectsJunction
- Fix stale example queries in Program.cs header comments
- Update UI subtitle to reference Trax.Samples instead of monorepo
BanPlayerTrain now overrides OnCompleted and OnFailed to log ban outcomes,
showing how trains can react to their own lifecycle without global hooks.
Replaces ChatLifecycleHookFactory with direct AddLifecycleHook<ChatLifecycleHook>()
registration. Adds AuditLogHook to GameServer API and Scheduler as a global
lifecycle hook example.
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