TestResults.xml
|
<?xml version="1.0" encoding="utf-8" standalone="no"?> <test-results xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="nunit_schema_2.5.xsd" name="Pester" total="48" errors="0" failures="0" not-run="11" inconclusive="0" ignored="0" skipped="0" invalid="0" date="2025-11-10" time="14:06:38"> <environment user="runner" cwd="/home/runner/work/AzureDevOps.Tools/AzureDevOps.Tools" os-version="6.11.0-1018-azure" user-domain="" clr-version="8.0.21" platform="Linux" nunit-version="2.5.8.0" machine-name="runnervmw9dnm" /> <culture-info current-culture="" current-uiculture="" /> <test-suite type="TestFixture" name="Pester" executed="True" result="Success" success="True" time="3.2767" asserts="0" description="Pester"> <results> <test-suite type="TestFixture" name="/home/runner/work/AzureDevOps.Tools/AzureDevOps.Tools/Tests/AzureDevOps.Tools.Tests.ps1" executed="True" result="Success" success="True" time="0.5311" asserts="0" description="/home/runner/work/AzureDevOps.Tools/AzureDevOps.Tools/Tests/AzureDevOps.Tools.Tests.ps1"> <results> <test-suite type="TestFixture" name="AzureDevOps.Tools Module Tests" executed="True" result="Success" success="True" time="0.2013" asserts="0" description="AzureDevOps.Tools Module Tests"> <results> <test-suite type="TestFixture" name="AzureDevOps.Tools Module Tests.Module Import" executed="True" result="Success" success="True" time="0.1622" asserts="0" description="AzureDevOps.Tools Module Tests.Module Import"> <results> <test-case description="Should import without errors" name="AzureDevOps.Tools Module Tests.Module Import.Should import without errors" time="0.1371" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="/home/runner/work/AzureDevOps.Tools/AzureDevOps.Tools/Tests/Connect-AzureDevOps.Tests.ps1" executed="True" result="Success" success="True" time="1.8774" asserts="0" description="/home/runner/work/AzureDevOps.Tools/AzureDevOps.Tools/Tests/Connect-AzureDevOps.Tests.ps1"> <results> <test-suite type="TestFixture" name="Connect-AzureDevOps Function Tests" executed="True" result="Success" success="True" time="1.8468" asserts="0" description="Connect-AzureDevOps Function Tests"> <results> <test-suite type="TestFixture" name="Connect-AzureDevOps Function Tests.Parameter Validation" executed="True" result="Success" success="True" time="1.7344" asserts="0" description="Connect-AzureDevOps Function Tests.Parameter Validation"> <results> <test-case description="Should require OrganizationUri from parameter or environment variable" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should require OrganizationUri from parameter or environment variable" time="0.0459" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should require TenantId from parameter or environment variable" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should require TenantId from parameter or environment variable" time="0.0235" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should require ClientId from parameter or environment variable" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should require ClientId from parameter or environment variable" time="0.01" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should require ClientSecret from parameter or environment variable" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should require ClientSecret from parameter or environment variable" time="0.009" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should validate OrganizationUri format from parameter" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should validate OrganizationUri format from parameter" time="0.0102" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should validate OrganizationUri format from environment variable" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should validate OrganizationUri format from environment variable" time="0.0148" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should validate TenantId GUID format from parameter" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should validate TenantId GUID format from parameter" time="0.0116" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should validate ClientId GUID format from parameter" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should validate ClientId GUID format from parameter" time="0.0114" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should accept valid parameters and fail at OAuth2 authentication level" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should accept valid parameters and fail at OAuth2 authentication level" time="0.6243" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should accept valid environment variables and fail at OAuth2 authentication level" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should accept valid environment variables and fail at OAuth2 authentication level" time="0.1735" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should accept valid Azure DevOps service connection environment variables as fallback" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should accept valid Azure DevOps service connection environment variables as fallback" time="0.2376" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should use standard service principal variables" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should use standard service principal variables" time="0.3046" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should accept Force parameter and fail at OAuth2 authentication level" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should accept Force parameter and fail at OAuth2 authentication level" time="0.1977" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should require SecureString for ClientSecret parameter" name="Connect-AzureDevOps Function Tests.Parameter Validation.Should require SecureString for ClientSecret parameter" time="0.0161" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Connect-AzureDevOps Function Tests.Function Behavior" executed="True" result="Success" success="True" time="1.8377" asserts="0" description="Connect-AzureDevOps Function Tests.Function Behavior"> <results> <test-case description="Should have proper help documentation" name="Connect-AzureDevOps Function Tests.Function Behavior.Should have proper help documentation" time="0.0696" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should support -Verbose parameter" name="Connect-AzureDevOps Function Tests.Function Behavior.Should support -Verbose parameter" time="0.0287" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> </results> </test-suite> <test-suite type="TestFixture" name="/home/runner/work/AzureDevOps.Tools/AzureDevOps.Tools/Tests/Import-JsonAsEnvironmentVariable.Tests.ps1" executed="True" result="Success" success="True" time="0.8538" asserts="0" description="/home/runner/work/AzureDevOps.Tools/AzureDevOps.Tools/Tests/Import-JsonAsEnvironmentVariable.Tests.ps1"> <results> <test-suite type="TestFixture" name="Import-JsonAsEnvironmentVariable Function Tests" executed="True" result="Success" success="True" time="0.7789" asserts="0" description="Import-JsonAsEnvironmentVariable Function Tests"> <results> <test-suite type="TestFixture" name="Import-JsonAsEnvironmentVariable Function Tests.Parameter Validation" executed="True" result="Success" success="True" time="0.0539" asserts="0" description="Import-JsonAsEnvironmentVariable Function Tests.Parameter Validation"> <results> <test-case description="Should require Path parameter" name="Import-JsonAsEnvironmentVariable Function Tests.Parameter Validation.Should require Path parameter" time="0.0123" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should not accept null or empty Path" name="Import-JsonAsEnvironmentVariable Function Tests.Parameter Validation.Should not accept null or empty Path" time="0.0154" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw error if file does not exist" name="Import-JsonAsEnvironmentVariable Function Tests.Parameter Validation.Should throw error if file does not exist" time="0.0205" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing" executed="True" result="Success" success="True" time="0.3242" asserts="0" description="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing"> <results> <test-case description="Should import simple JSON file with string values in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should import simple JSON file with string values in POSIX convention" time="0.0602" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should import JSON file with numeric values in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should import JSON file with numeric values in POSIX convention" time="0.0224" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should import JSON file with boolean values in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should import JSON file with boolean values in POSIX convention" time="0.0205" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should flatten nested JSON objects and convert to POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should flatten nested JSON objects and convert to POSIX convention" time="0.0317" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle JSON with array values as JSON strings in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should handle JSON with array values as JSON strings in POSIX convention" time="0.0302" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should apply prefix to variable names when specified in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should apply prefix to variable names when specified in POSIX convention" time="0.0166" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle JSON with null values in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should handle JSON with null values in POSIX convention" time="0.0165" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle JSON with special characters in values in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should handle JSON with special characters in values in POSIX convention" time="0.0156" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle JSONC files with single-line comments" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should handle JSONC files with single-line comments" time="0.0131" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle JSONC files with multi-line comments" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should handle JSONC files with multi-line comments" time="0.0143" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle JSONC files with trailing commas" name="Import-JsonAsEnvironmentVariable Function Tests.Valid JSON File Processing.Should handle JSONC files with trailing commas" time="0.0174" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Import-JsonAsEnvironmentVariable Function Tests.Invalid JSON File Handling" executed="True" result="Success" success="True" time="0.3876" asserts="0" description="Import-JsonAsEnvironmentVariable Function Tests.Invalid JSON File Handling"> <results> <test-case description="Should throw error for invalid JSON syntax" name="Import-JsonAsEnvironmentVariable Function Tests.Invalid JSON File Handling.Should throw error for invalid JSON syntax" time="0.0207" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should throw error for empty file" name="Import-JsonAsEnvironmentVariable Function Tests.Invalid JSON File Handling.Should throw error for empty file" time="0.0201" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle empty JSON object" name="Import-JsonAsEnvironmentVariable Function Tests.Invalid JSON File Handling.Should handle empty JSON object" time="0.0151" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting" executed="True" result="Success" success="True" time="0.5854" asserts="0" description="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting"> <results> <test-case description="Should detect Azure DevOps environment when SYSTEM_COLLECTIONURI is set" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting.Should detect Azure DevOps environment when SYSTEM_COLLECTIONURI is set" time="0.0425" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should detect non-Azure DevOps environment when SYSTEM_COLLECTIONURI is not set" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting.Should detect non-Azure DevOps environment when SYSTEM_COLLECTIONURI is not set" time="0.0184" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should output Azure DevOps variable commands when in Azure DevOps environment" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting.Should output Azure DevOps variable commands when in Azure DevOps environment" time="0.0213" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should set PowerShell environment variables when not in Azure DevOps environment" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting.Should set PowerShell environment variables when not in Azure DevOps environment" time="0.0259" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should not set PowerShell environment variables when in Azure DevOps environment" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting.Should not set PowerShell environment variables when in Azure DevOps environment" time="0.0279" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should include correct verbose messages for Azure DevOps variable setting" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting.Should include correct verbose messages for Azure DevOps variable setting" time="0.0315" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should include correct verbose messages for PowerShell variable setting" name="Import-JsonAsEnvironmentVariable Function Tests.Environment Detection and Variable Setting.Should include correct verbose messages for PowerShell variable setting" time="0.0206" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Import-JsonAsEnvironmentVariable Function Tests.Function Behavior" executed="True" result="Success" success="True" time="0.6703" asserts="0" description="Import-JsonAsEnvironmentVariable Function Tests.Function Behavior"> <results> <test-case description="Should have proper help documentation" name="Import-JsonAsEnvironmentVariable Function Tests.Function Behavior.Should have proper help documentation" time="0.0157" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should support -Verbose parameter" name="Import-JsonAsEnvironmentVariable Function Tests.Function Behavior.Should support -Verbose parameter" time="0.0102" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should return ImportedAt timestamp" name="Import-JsonAsEnvironmentVariable Function Tests.Function Behavior.Should return ImportedAt timestamp" time="0.0418" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should include file path in result" name="Import-JsonAsEnvironmentVariable Function Tests.Function Behavior.Should include file path in result" time="0.0111" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Import-JsonAsEnvironmentVariable Function Tests.Edge Cases" executed="True" result="Success" success="True" time="0.763" asserts="0" description="Import-JsonAsEnvironmentVariable Function Tests.Edge Cases"> <results> <test-case description="Should handle deeply nested objects in POSIX convention" name="Import-JsonAsEnvironmentVariable Function Tests.Edge Cases.Should handle deeply nested objects in POSIX convention" time="0.0158" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle JSON with mixed types" name="Import-JsonAsEnvironmentVariable Function Tests.Edge Cases.Should handle JSON with mixed types" time="0.0206" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Should handle large JSON files" name="Import-JsonAsEnvironmentVariable Function Tests.Edge Cases.Should handle large JSON files" time="0.0508" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> </results> </test-suite> </results> </test-suite> </test-results> |