Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaykul/sxstest
An example of side-by-side PowerShell modules, for test purposes
https://github.com/jaykul/sxstest
Last synced: about 1 month ago
JSON representation
An example of side-by-side PowerShell modules, for test purposes
- Host: GitHub
- URL: https://github.com/jaykul/sxstest
- Owner: Jaykul
- Created: 2015-04-24T21:11:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-14T18:47:09.000Z (over 9 years ago)
- Last Synced: 2024-10-28T10:20:17.223Z (3 months ago)
- Language: PowerShell
- Size: 176 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SxSTest
An example of side-by-side PowerShell modules, for test purposesWhen originally published, there was a bug in dependencies...
_The current version of PS5 fixes this so that all tests PASS_
```
C:\PS> .\TestAll.ps1WARNING: Modifying PSModulePath for test
=== CLEAN RELOAD SxSTest v1.0 ===
=== TEST SxSTest v2.0 ===
VERBOSE: Invoke-Test 1.0
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\2.0\SxSTest.psm1'.
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\1.0\SxSTest.psm1'.
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\2.0\SxSTest.psd1'.
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\2.0\SxSTest.psm1'.
VERBOSE: Exporting function 'Get-SxSVersion'.
VERBOSE: Exporting function 'Get-ModuleVersion'.
VERBOSE: Exporting function 'Invoke-Test'.
VERBOSE: Importing function 'Get-ModuleVersion'.
VERBOSE: Importing function 'Get-SxSVersion'.
VERBOSE: Importing function 'Invoke-Test'.
VERBOSE: TEST SCRIPT 2.0
VERBOSE: Get-SxSVersion 2.0
VERBOSE: Get-ModuleVersion 2.0
VERBOSE: Get-ModuleVersion 2.0
TRUE
=== CLEAN RELOAD SxSTest v2.0 ===
=== TEST SxSTest v1.0 ===
VERBOSE: Invoke-Test 1.0
VERBOSE: TEST SCRIPT 1.0
VERBOSE: Get-SxSVersion 1.0
VERBOSE: Get-ModuleVersion 1.0
VERBOSE: Get-ModuleVersion 1.0
TRUE
=== TEST SxSTest v2.0 ===
VERBOSE: Invoke-Test 1.0
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\2.0\SxSTest.psm1'.
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\1.0\SxSTest.psm1'.
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\2.0\SxSTest.psd1'.
VERBOSE: Loading module from path 'C:\Users\Joel\Projects\Modules\SxSTest\2.0\SxSTest.psm1'.
VERBOSE: Exporting function 'Get-SxSVersion'.
VERBOSE: Exporting function 'Get-ModuleVersion'.
VERBOSE: Exporting function 'Invoke-Test'.
VERBOSE: Importing function 'Get-ModuleVersion'.
VERBOSE: Importing function 'Get-SxSVersion'.
VERBOSE: Importing function 'Invoke-Test'.
VERBOSE: TEST SCRIPT 2.0
VERBOSE: Get-SxSVersion 2.0
VERBOSE: Get-ModuleVersion 2.0
VERBOSE: Get-ModuleVersion 2.0
TRUE
=== TEST SxSTest v1.0 ===
VERBOSE: Invoke-Test 1.0
VERBOSE: TEST SCRIPT 1.0
VERBOSE: Get-SxSVersion 2.0
VERBOSE: Get-ModuleVersion 2.0
FALSE
WARNING: Restoring PSModulePathC:\PS> Get-Module SxSTest | Format-Table Name, Version
Name Version
---- -------
SxSTest 1.0C:\PS> &(Get-Module SxSTest){ Get-Module SxSTest | Format-Table Name, Version}
Name Version
---- -------
SxSTest 2.0
SxSTest 1.0```