Skip to content

Commit

Permalink
Adding PSModuleInfo.Test(s) (Fixes #104)
Browse files Browse the repository at this point in the history
Also, documenting PSModuleInfo.Demo (#81)
  • Loading branch information
James Brundage committed Aug 2, 2023
1 parent 208f3b2 commit 051e8c0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions Types/PSModuleInfo/Alias.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
Screenshots = 'Screenshot'
Videos = 'Video'
Demos = 'Demo'
Tests = 'Test'
}
15 changes: 14 additions & 1 deletion Types/PSModuleInfo/get_Demo.ps1
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
$this | Split-Path | Get-ChildItem -Recurse -Filter *.demo.ps1 | Select-Object -Unique
<#
.SYNOPSIS
Gets module demos
.DESCRIPTION
Gets demo files related to a module.
.EXAMPLE
$Posh.Demos
.LINK
https://github.com/StartAutomating/ShowDemo
#>
$this |
Split-Path |
Get-ChildItem -Recurse -Filter *.demo.ps1 |
Select-Object -Unique
10 changes: 10 additions & 0 deletions Types/PSModuleInfo/get_Test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<#
.SYNOPSIS
Gets module tests
.DESCRIPTION
Gets Pester Tests located within a module.
#>
$this |
Split-Path |
Get-ChildItem -Recurse -Filter *.tests.ps1 |
Select-Object -Unique

0 comments on commit 051e8c0

Please sign in to comment.