Skip to content

Commit 4741dec

Browse files
committed
More tweaks to that failing test
1 parent f6af40e commit 4741dec

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Tests/Integration/Parameters.Tests.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
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

Tests/Integration/Result3/Parameters/ReadMe.md

Whitespace-only changes.

0 commit comments

Comments
 (0)