Skip to content

Conversation

@santisq
Copy link
Owner

@santisq santisq commented Jul 12, 2025

Adds -ModuleNames and -ModulePaths parameters to Invoke-Parallel:

  • Introduce -ModuleNames to import system-installed modules via $env:PSModulePath.
  • Add -ModulePaths to load custom modules from specified directories.
  • Updates README and docs with examples and usage notes.
  • Simplify module integration, removing need for manual Import-Module in script blocks.
  • Add Pester tests for new parameters.

@santisq santisq self-assigned this Jul 12, 2025
@santisq santisq added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 12, 2025
@santisq santisq linked an issue Jul 12, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jul 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.27%. Comparing base (5a5582b) to head (9fbb6d8).
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   97.22%   98.27%   +1.05%     
==========================================
  Files          12       13       +1     
  Lines         504      580      +76     
  Branches       34       42       +8     
==========================================
+ Hits          490      570      +80     
+ Misses          9        5       -4     
  Partials        5        5              
Flag Coverage Δ
PS-5.1 98.85% <100.00%> (+1.13%) ⬆️
PS-7_Linux 98.27% <100.00%> (+1.05%) ⬆️
PS-7_Windows 98.85% <100.00%> (+1.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@santisq santisq merged commit fc4efdf into main Jul 14, 2025
7 checks passed
@santisq santisq deleted the 48-ability-to-import-modules-during-startup-of-powershell-runspace branch July 14, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to import Modules during startup of PowerShell runspace

2 participants