@@ -7,14 +7,14 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
7
7
Publisher = ' MyPublisher'
8
8
Product = ' MyProduct'
9
9
Version = ' 1.2.3'
10
- Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName } }
10
+ Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName.Replace( ' .Tests ' , ' ' ) } }
11
11
Run = {}
12
12
}
13
13
' Publisher Change' = @ {
14
14
Publisher = ' YourPublisher'
15
15
Product = ' MyProduct'
16
16
Version = ' 1.2.3'
17
- Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName } }
17
+ Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName.Replace( ' .Tests ' , ' ' ) } }
18
18
Run = {
19
19
$script :Redstone.Publisher = ' YourPublisher'
20
20
}
@@ -23,7 +23,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
23
23
Publisher = ' MyPublisher'
24
24
Product = ' YourProduct'
25
25
Version = ' 1.2.3'
26
- Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName } }
26
+ Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName.Replace( ' .Tests ' , ' ' ) } }
27
27
Run = {
28
28
$script :Redstone.Product = ' YourProduct'
29
29
}
@@ -32,7 +32,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
32
32
Publisher = ' MyPublisher'
33
33
Product = ' MyProduct'
34
34
Version = ' 2.3.4'
35
- Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName } }
35
+ Action = { if ($instantiation.Name -eq ' FourParams' ) { ' test' } else { ([IO.FileInfo ] $PSCommandPath ).BaseName.Replace( ' .Tests ' , ' ' ) } }
36
36
Run = {
37
37
$script :Redstone.Version = ' 2.3.4'
38
38
}
@@ -57,7 +57,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
57
57
$script :publisher = ' MyPublisher'
58
58
$script :product = ' MyProduct'
59
59
$script :version = ' 1.2.3'
60
- $script :action = ([IO.FileInfo ] $PSCommandPath ).BaseName
60
+ $script :action = ([IO.FileInfo ] $PSCommandPath ).BaseName.Replace( ' .Tests ' , ' ' )
61
61
[IO.FileInfo ] $json = [IO.Path ]::Combine($PWD.Path , ' settings.json' )
62
62
$jsonData = @ {
63
63
Publisher = $script :publisher
@@ -79,7 +79,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
79
79
$script :publisher = ' MyPublisher'
80
80
$script :product = ' MyProduct'
81
81
$script :version = ' 1.2.3'
82
- $script :action = ([IO.FileInfo ] $PSCommandPath ).BaseName
82
+ $script :action = ([IO.FileInfo ] $PSCommandPath ).BaseName.Replace( ' .Tests ' , ' ' )
83
83
[IO.FileInfo ] $json = [IO.Path ]::Combine($PSScriptRoot , ' settings.json' )
84
84
$jsonData = @ {
85
85
Publisher = $script :publisher
0 commit comments