Skip to content

Instantly share code, notes, and snippets.

@ebekker
Last active June 7, 2021 18:53
Show Gist options
  • Save ebekker/bbe0eabece0e4e9c4c8d9e962ed93ea4 to your computer and use it in GitHub Desktop.
Save ebekker/bbe0eabece0e4e9c4c8d9e962ed93ea4 to your computer and use it in GitHub Desktop.

Test Report: Action Base Tests

  • Date: 2021-06-07
  • Time: 18:53:53

Expand the following summaries for more details:

Environment:
Env
user: runner
cwd: /home/runner/work/pwsh-github-action-base/pwsh-github-action-base
os-version: 5.4.0-1047-azure
user-domain: ``
machine-name: fv-az212-765
nunit-version: 2.5.8.0
clr-version: Unknown
platform: Linux
Outcome: /> | Total Tests: 26 | Passed: 17 | Failed: 8
Counters
Total: 26
Errors: 0
Failures: 8
Not-run: 1
Inconclusive: 0
Ignored: 0
Skipped: 0
Invalid: 0

Tests:

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal

❌ Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal("varValue1","varName1")

Given valid -Name and -Value, and -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal
Name: Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal("varValue1","varName1")
Outcome: Failure
Time: 0.3278 seconds
Error Message:
Expected '::set-env name=varName1::varValue1
', but got $null.
at $output | Should -Be $Expected, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:22
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:22
❌ Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal("var value 2","var name 2")

Given valid -Name and -Value, and -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal
Name: Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal("var value 2","var name 2")
Outcome: Failure
Time: 0.0643 seconds
Error Message:
Expected '::set-env name=var name 2::var value 2
', but got $null.
at $output | Should -Be $Expected, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:22
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:22
❌ Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal("var,name;3","::set-env name=var%2Cname%3B3::var,value;3 ","var,value;3")

Given valid -Name and -Value, and -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal
Name: `Set-ActionVariable.Given valid -Name and -Value, and -SkipLocal("var,name;3","::set-env name=var%2Cname%3B3::var,value;3
","var,value;3")`
Outcome: Failure
Time: 0.0149 seconds
Error Message:
Expected '::set-env name=var%2Cname%3B3::var,value;3
', but got $null.
at $output | Should -Be $Expected, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:22
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:22

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal

❌ Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal("varValue1","varName1")

Given valid -Name and -Value, and NOT -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal
Name: Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal("varValue1","varName1")
Outcome: Failure
Time: 0.0151 seconds
Error Message:
Expected '::set-env name=varName1::varValue1
', but got $null.
at Set-ActionVariable $Name $Value | Should -Be $Expected, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:32
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:32
❌ Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal("var value 2","var name 2")

Given valid -Name and -Value, and NOT -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal
Name: Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal("var value 2","var name 2")
Outcome: Failure
Time: 0.0183 seconds
Error Message:
Expected '::set-env name=var name 2::var value 2
', but got $null.
at Set-ActionVariable $Name $Value | Should -Be $Expected, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:32
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:32
❌ Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal("var,name;3","::set-env name=var%2Cname%3B3::var,value;3 ","var,value;3")

Given valid -Name and -Value, and NOT -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionVariable / Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal
Name: `Set-ActionVariable.Given valid -Name and -Value, and NOT -SkipLocal("var,name;3","::set-env name=var%2Cname%3B3::var,value;3
","var,value;3")`
Outcome: Failure
Time: 0.0163 seconds
Error Message:
Expected '::set-env name=var%2Cname%3B3::var,value;3
', but got $null.
at Set-ActionVariable $Name $Value | Should -Be $Expected, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:32
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:32

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Add-ActionSecretMask

✔️ Add-ActionSecretMask.Given a valid -Secret

Given a valid -Secret

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Add-ActionSecretMask
Name: Add-ActionSecretMask.Given a valid -Secret
Outcome: Success ✔️
Time: 0.0234 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Add-ActionPath

❌ Add-ActionPath.Given a valid -Path and -SkipLocal

Given a valid -Path and -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Add-ActionPath
Name: Add-ActionPath.Given a valid -Path and -SkipLocal
Outcome: Failure
Time: 0.0306 seconds
Error Message:
Expected '::add-path::/to/some/path
', but got $null.
at Add-ActionPath $addPath -SkipLocal | Should -Be "::add-path::$($addPath)$EOL", /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:48
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:48
❌ Add-ActionPath.Given a valid -Path and NOT -SkipLocal

Given a valid -Path and NOT -SkipLocal

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Add-ActionPath
Name: Add-ActionPath.Given a valid -Path and NOT -SkipLocal
Outcome: Failure
Time: 0.0179 seconds
Error Message:
Expected '::add-path::/to/some/path
', but got $null.
at Add-ActionPath $addPath | Should -Be "::add-path::$($addPath)$EOL", /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:56
Error Stack Trace:
at <ScriptBlock>, /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1:56

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInput / Get-ActionInput.Given valid -Name

✔️ Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"input1")

Given valid -Name

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInput / Get-ActionInput.Given valid -Name
Name: Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"input1")
Outcome: Success ✔️
Time: 0.0225 seconds
✔️ Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"INPUT1")

Given valid -Name

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInput / Get-ActionInput.Given valid -Name
Name: Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"INPUT1")
Outcome: Success ✔️
Time: 0.0201 seconds
✔️ Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"Input1")

Given valid -Name

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInput / Get-ActionInput.Given valid -Name
Name: Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"Input1")
Outcome: Success ✔️
Time: 0.0205 seconds
✔️ Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"input2")

Given valid -Name

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInput / Get-ActionInput.Given valid -Name
Name: Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"input2")
Outcome: Success ✔️
Time: 0.045 seconds
✔️ Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"INPUT2")

Given valid -Name

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInput / Get-ActionInput.Given valid -Name
Name: Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"INPUT2")
Outcome: Success ✔️
Time: 0.0146 seconds
✔️ Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"Input2")

Given valid -Name

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInput / Get-ActionInput.Given valid -Name
Name: Get-ActionInput.Given valid -Name(System.Collections.Hashtable,"Input2")
Outcome: Success ✔️
Time: 0.0258 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInputs / Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case

✔️ Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case(System.Collections.Hashtable,"InPut1")

Given 2 predefined inputs, and a -Name in any case

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInputs / Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case
Name: Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case(System.Collections.Hashtable,"InPut1")
Outcome: Success ✔️
Time: 0.0527 seconds
✔️ Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case(System.Collections.Hashtable,"InPut2")

Given 2 predefined inputs, and a -Name in any case

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInputs / Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case
Name: Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case(System.Collections.Hashtable,"InPut2")
Outcome: Success ✔️
Time: 0.0242 seconds
✔️ Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case(System.Collections.Hashtable,"InPut3")

Given 2 predefined inputs, and a -Name in any case

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Get-ActionInputs / Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case
Name: Get-ActionInputs.Given 2 predefined inputs, and a -Name in any case(System.Collections.Hashtable,"InPut3")
Outcome: Success ✔️
Time: 0.0329 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionOuput

✔️ Set-ActionOuput.Given a valid -Name and -Value

Given a valid -Name and -Value

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Set-ActionOuput
Name: Set-ActionOuput.Given a valid -Name and -Value
Outcome: Success ✔️
Time: 0.0099 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionDebug

✔️ Write-ActionDebug.Given a valid -Message

Given a valid -Message

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionDebug
Name: Write-ActionDebug.Given a valid -Message
Outcome: Success ✔️
Time: 0.0079 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionError

✔️ Write-ActionError.Given a valid -Message

Given a valid -Message

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionError
Name: Write-ActionError.Given a valid -Message
Outcome: Success ✔️
Time: 0.0126 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionWarning

✔️ Write-ActionWarning.Given a valid -Message

Given a valid -Message

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionWarning
Name: Write-ActionWarning.Given a valid -Message
Outcome: Success ✔️
Time: 0.0087 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionInfo

✔️ Write-ActionInfo.Given a valid -Message

Given a valid -Message

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Write-ActionInfo
Name: Write-ActionInfo.Given a valid -Message
Outcome: Success ✔️
Time: 0.0066 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Enter-ActionOutputGroup

✔️ Enter-ActionOutputGroup.Given a valid -Name

Given a valid -Name

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Enter-ActionOutputGroup
Name: Enter-ActionOutputGroup.Given a valid -Name
Outcome: Success ✔️
Time: 0.0189 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Exit-ActionOutputGroup

✔️ Exit-ActionOutputGroup.Given everything is peachy

Given everything is peachy

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Exit-ActionOutputGroup
Name: Exit-ActionOutputGroup.Given everything is peachy
Outcome: Success ✔️
Time: 0.0071 seconds

/ Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Invoke-ActionWithinOutputGroup

✔️ Invoke-ActionWithinOutputGroup.Given a valid -Name and -ScriptBlock

Given a valid -Name and -ScriptBlock

Parent: / Pester / /home/runner/work/pwsh-github-action-base/pwsh-github-action-base/tests/GitHubActions_tests.ps1 / Invoke-ActionWithinOutputGroup
Name: Invoke-ActionWithinOutputGroup.Given a valid -Name and -ScriptBlock
Outcome: Success ✔️
Time: 0.0118 seconds
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment