Add Trax.Core.Testing: reusable architecture-guard foundation#24
Merged
Conversation
… hygiene checkers Framework-agnostic guard checkers (RepoRoot/SourceFiles/SourceText, ArchitectureGuardOptions, GuardResult) plus hygiene/repo-convention checkers (no [Ignore], no legacy asserts, no fixed delays, Directory.Build.props version, cross-repo Version=1.*). No test-framework dependency: each checker returns an offender list a consumer asserts on with its own framework. 11 unit tests.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Each guard becomes an abstract [TestFixture] with the [Test] methods pre-written; consumers subclass it, override the config (options, types, assemblies), add [TestFixture], and run dotnet test. The framework-agnostic checker methods remain for non-NUnit use.
Adds self-test fixtures that run each base fixture as a consumer would (subclass + configure against a synthetic repo), plus direct tests for RepoRoot resolution, SourceFiles build-output exclusion, and the RepoConventionGuards missing-file / unparseable-project branches. Closes the coverage gaps Codecov flagged on the new code.
Theauxm
added a commit
that referenced
this pull request
Jun 1, 2026
Release trigger: the originating change (#24) squash-merged with a non-conventional title, so semantic-release classified it as a non-release and no package was published. Merging this lands a feat: commit on main, cutting the release that publishes Trax.Core.Testing (and the other Trax.Core packages at the bumped version).
|
This PR is included in version 1.6.0 |
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.
Introduces
Trax.Core.Testing, the shared foundation for per-repo architecture-guard packages: repo-scanning infrastructure (RepoRoot/SourceFiles/SourceText),ArchitectureGuardOptions,GuardResult, and hygiene/repo-convention checkers (no[Ignore], no legacy asserts, no fixed delays, Directory.Build.props version, cross-repoVersion="1.*").Framework-agnostic by design (matching the
*.Tests.ArrayLoggerprecedent): each checker returns an offender list a consumer asserts on with its own test framework, so the package carries no NUnit/FluentAssertions dependency. 11 unit tests against synthetic fixture trees.Part of a six-repo change. Merge in dependency order so each repo's package is published before its consumers: Trax.Core → Trax.Effect / Trax.Mediator → Trax.Api → Trax.Samples → Trax.Docs.