File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# requires -Module ModuleBuilder
22
3- Describe " Parameters.Set in build manifest " - Tag Integration {
3+ Describe " Parameters" - Tag Integration {
44 BeforeAll {
55 . $PSScriptRoot / ../ Convert-FolderSeparator.ps1
6- New-Item $PSScriptRoot / Result3/ Parameters/ ReadMe.md - ItemType File - Force
6+ # Make sure the Result3 folder is really clean ;)
7+ if (Test-Path $PSScriptRoot / Result3) {
8+ Remove-Item $PSScriptRoot / Result3 - Recurse - Force
9+ }
10+ # Throw in an extra file that would get cleaned up normally ...
11+ New-Item $PSScriptRoot / Result3/ Parameters/ 3.0 .0 / DeleteMe.md - ItemType File - Force
712 }
813
914 It " Passthru is read from the build manifest" {
@@ -12,7 +17,8 @@ Describe "Parameters.Set in build manifest" -Tag Integration {
1217 $Output.Path | Convert-FolderSeparator | Should - Be (Convert-FolderSeparator " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psd1" )
1318 }
1419
15- It " The Target is Build" {
20+ It " The target is 'Build' (not CleanBuild) so pre-created extra files get left behind" {
21+ Convert-FolderSeparator " $PSScriptRoot /Result3/Parameters/3.0.0/DeleteMe.md" | Should - Exist
1622 Convert-FolderSeparator " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psm1" | Should - Exist
1723 }
1824
You can’t perform that action at this time.
0 commit comments