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 1
1
# requires -Module ModuleBuilder
2
2
3
- Describe " Parameters.Set in build manifest " - Tag Integration {
3
+ Describe " Parameters" - Tag Integration {
4
4
BeforeAll {
5
5
. $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
7
12
}
8
13
9
14
It " Passthru is read from the build manifest" {
@@ -12,7 +17,8 @@ Describe "Parameters.Set in build manifest" -Tag Integration {
12
17
$Output.Path | Convert-FolderSeparator | Should - Be (Convert-FolderSeparator " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psd1" )
13
18
}
14
19
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
16
22
Convert-FolderSeparator " $PSScriptRoot /Result3/Parameters/3.0.0/Parameters.psm1" | Should - Exist
17
23
}
18
24
You can’t perform that action at this time.
0 commit comments