entra-powershell icon indicating copy to clipboard operation
entra-powershell copied to clipboard

Unit Tests to ensure compatibility with PS 7 and PS 5.1

Open givinalis opened this issue 1 month ago • 4 comments

Changes

Automated test suite that validates all 18 Entra and EntraBeta PowerShell modules can be successfully imported in both PowerShell 5.1 and PowerShell 7+.

What It Tests

  • Module Discovery: Verifies all expected modules exist (9 Entra + 9 EntraBeta)
  • PS 7+ Compatibility: Tests all modules import successfully in current PowerShell session
  • PS 5.1 Compatibility: Tests all modules import successfully in Windows PowerShell 5.1
  • Manifest Validation: Confirms all .psd1 manifest files exist and can be parsed
  • Export Validation: Verifies each module exports cmdlets (486 total across all modules)

Why It Matters

PowerShell 5.1 has stricter parsing rules and different Unicode handling than PS 7+. This ensures modules work in both environments without breaking enterprise customers still using Windows PowerShell.

givinalis avatar Nov 28 '25 12:11 givinalis

Learn Build status updates of commit 1db0a13:

:x: Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
:x:Error Details

  • Line 0, Column 0: [Error: PSMD2Yaml_FileLoadFailed] Failed to load file: C:/LocalRun/W/znfl-s/module/mapping/monikerMapping.json. PackageRoot, ReferenceTocUrl, and ConceptualTocUrl are required for every moniker. PackageRoot should be a valid relative path to docset root.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Learn Build status updates of commit 5dfe0e2:

:x: Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
:x:Error Details

  • Line 0, Column 0: [Error: PSMD2Yaml_FileLoadFailed] Failed to load file: C:/LocalRun/W/1mxi-s/module/mapping/monikerMapping.json. PackageRoot, ReferenceTocUrl, and ConceptualTocUrl are required for every moniker. PackageRoot should be a valid relative path to docset root.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Learn Build status updates of commit 4587ef7:

:x: Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
:x:Error Details

  • Line 0, Column 0: [Error: PSMD2Yaml_FileLoadFailed] Failed to load file: C:/LocalRun/W/nhf3-s/module/mapping/monikerMapping.json. PackageRoot, ReferenceTocUrl, and ConceptualTocUrl are required for every moniker. PackageRoot should be a valid relative path to docset root.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

Learn Build status updates of commit 17941e3:

:x: Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
:x:Error Details

  • Line 0, Column 0: [Error: PSMD2Yaml_FileLoadFailed] Failed to load file: C:/LocalRun/W/thwc-s/module/mapping/monikerMapping.json. PackageRoot, ReferenceTocUrl, and ConceptualTocUrl are required for every moniker. PackageRoot should be a valid relative path to docset root.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.