From bb1fdc132a07c596bdaf002447d3b4ab03af2b52 Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Thu, 4 Jan 2024 13:47:25 -0500 Subject: [PATCH] Add testspace steps --- .github/workflows/powershell.yml | 7 +++++++ .gitignore | 2 ++ README.md | 3 ++- build.ps1 | 7 ++++++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/powershell.yml b/.github/workflows/powershell.yml index 2ea7d8d..c3bc593 100644 --- a/.github/workflows/powershell.yml +++ b/.github/workflows/powershell.yml @@ -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 diff --git a/.gitignore b/.gitignore index 8a30d25..f5bb8e6 100644 --- a/.gitignore +++ b/.gitignore @@ -396,3 +396,5 @@ FodyWeavers.xsd # JetBrains Rider *.sln.iml + +testResults.xml diff --git a/README.md b/README.md index a53fc10..dfa9d5f 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/build.ps1 b/build.ps1 index c4accdc..d9ffbce 100644 --- a/build.ps1 +++ b/build.ps1 @@ -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 }