Skip to content

📖 [Docs]: Module test layouts aligned with Process-PSModule#88

Merged
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
align-module-test-layouts
Jul 26, 2026
Merged

📖 [Docs]: Module test layouts aligned with Process-PSModule#88
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
align-module-test-layouts

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Jul 26, 2026

Copy link
Copy Markdown
Member

Module authors can now choose a test layout that matches their module's size while preserving behavior coverage for every public command.

Changed: Test suites can follow Simple, Standard, or Advanced layouts

Simple modules use one root suite, Standard modules group root suites by public function domain, and Advanced modules use recursive directories with Process-PSModule's configuration, container, and test-file precedence. Grouped suites are explicitly supported without weakening the requirement to test every public command's behavior.


Technical details
  • Documents live Process-PSModule directory discovery and first-dot TestName derivation.
  • Aligns Pester 6 requirements, locally runnable tests, and module-owned mocking boundaries with MSX guidance.
  • Clarifies root-only BeforeAll.ps1 and AfterAll.ps1 workflow phases.
  • Validation passed: Zensical build, Super-Linter, CodeQL, and diff checks.
Relevant issues (or links)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
HTML Pass ✅
JAVASCRIPT_ES Pass ✅
JAVASCRIPT_PRETTIER Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review July 26, 2026 00:22
@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit 6bf69bd into main Jul 26, 2026
21 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the align-module-test-layouts branch July 26, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align test-layout guidance with grouped public command tests

1 participant