-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDoExampleTests.Tests.ps1
46 lines (38 loc) · 1.18 KB
/
DoExampleTests.Tests.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Run these tests
## PS1> Invoke-Pester
## PS1> Invoke-Pester ".\DoExampleTests.Tests.ps1"
## PS1> Invoke-Pester -Tag Unit
## PS1> Invoke-Pester -Tag Integration
## PS1> Invoke-Pester -Tag Acceptance
Describe 'Check if tests are working one passed and one failed (without any Tag)' {
It "A always failing test" {
$false | Should Be $true
}
It "A always successfull test" {
$true | Should Be $true
}
}
Describe 'Check if tests are working one passed and one failed (with Tag Unit)' -Tags 'Unit' {
It "A always failing test" {
$false | Should Be $true
}
It "A always successfull test" {
$true | Should Be $true
}
}
Describe 'Check if tests are working one passed and one failed (with Tag Integration)' -Tags 'Integration' {
It "A always failing test" {
$false | Should Be $true
}
It "A always successfull test" {
$true | Should Be $true
}
}
Describe 'Check if tests are working one passed and one failed (with Tag Acceptance)' -Tags 'Acceptance' {
It "A always failing test" {
$false | Should Be $true
}
It "A always successfull test" {
$true | Should Be $true
}
}