Skip to content

Commit

Permalink
Add testspace steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Jan 4, 2024
1 parent fb6792b commit bb1fdc1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,17 @@ jobs:
name: build
path: publish

- uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

- name: Test
shell: pwsh
run: ./build.ps1 test

- name: Publish Results to Testspace
run: testspace "./*.xml"

test5:
permissions:
contents: read # for actions/checkout to fetch code
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,5 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml

testResults.xml
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ It also provides easy access to the Windows Certificate store for client certifi

## CI

[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/httpunitps.svg?color=%235391FE&label=PowerShellGallery&logo=powershell&style=flat)](https://www.powershellgallery.com/packages/httpunitPS)
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/cdhunt/httpunitps/powershell.yml?style=flat&logo=github)
[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/httpunitps.svg?color=%235391FE&label=PowerShellGallery&logo=powershell&style=flat)](https://www.powershellgallery.com/packages/httpunitPS)

![Build history](https://buildstats.info/github/chart/cdhunt/httpunitPS?branch=main)

Expand Down
7 changes: 6 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ function Test {
Install-Module -Name Pester -Confirm:$false -Force
}

Invoke-Pester -Path test -Output detailed
$config = [PesterConfiguration]::Default
$config.Run.Path = "test"
$config.TestResult.Enabled = $true
$config.TestResult.OutputFormat = "NUnitXml"
$config.Output.Verbosity = "Detailed"
Invoke-Pester -Configuration $config
}


Expand Down

0 comments on commit bb1fdc1

Please sign in to comment.