-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix Issue with Modules Koans (#399)
* 🐛 Avoid error on missing module folder - This is an expected case for Modules to be missing in the user folder so just check the path and avoid searching it if it doesn't exist yet * 🐛 Explicitly import required modules - Check script required modules & import them prior to invoking Pester * 🐛 Fix Show-Karma parameter sets - Sets prevented use of -(Include)Module with -Contemplate :( * 🐛 Fix errors * 🐛 remove misplaced alias * 🐛 Make sure module params are added to get * 🐛 Improve handling for modules Added handling to Get-Karma to ensure Update-PSKoan copies module files when module params are specified. * 🐛 Fix Invoke-Koan functionality - Fix edge case where PSKoans is not on PSModulePath. - Copy PSModulePath and PSKoans path into new runspace. - Propagate errors from runspace to current session in case of errors. * 🎨 Indentation fix * 🐛 Fix Unix issue - Apparently Import-Module fails to recognise Unix fully qualified path * ✨ Add debugging script * ✅ Update Show-Karma tests * 🐛 Fix null path with -Module and -Contemplate * 🚧 Add format generation to debug script
- Loading branch information
Showing
7 changed files
with
135 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$env:PSModulePath = $( | ||
@( | ||
$env:PSModulePath -split [System.IO.Path]::PathSeparator | ||
$PSScriptRoot | ||
) | Select-Object -Unique | ||
) -join [System.IO.Path]::PathSeparator | ||
|
||
& $PSScriptRoot/PSKoans.ezformat.ps1 | ||
Import-Module $PSScriptRoot/PSKoans | ||
|
||
### Enter code to test below |
This file contains 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