TestsResults.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="45" errors="0" failures="0" not-run="0" inconclusive="0" ignored="0" skipped="0" invalid="0" date="2021-02-06" time="13:39:43"> <environment user="DouglasChen" machine-name="U64-DOUGLASCHEN" cwd="D:\petzone\powershell\psmultilog\PSMultiLogPlus.git" user-domain="GLITW" platform="Microsoft Windows 10 專業版|C:\Windows|\Device\Harddisk2\Partition4" nunit-version="2.5.8.0" os-version="10.0.18363" clr-version="4.0.30319.42000" /> <culture-info current-culture="zh-TW" current-uiculture="zh-TW" /> <test-suite type="Powershell" name="Pester" executed="True" result="Success" success="True" time="3.3974" asserts="0"> <results> <test-suite type="TestFixture" name="Start-FileLog" executed="True" result="Success" success="True" time="1.3018" asserts="0" description="Start-FileLog"> <results> <test-case description="Enables File Logging" name="Start-FileLog.Enables File Logging" time="1.0221" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates log file" name="Start-FileLog.Creates log file" time="0.2027" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Removes existing file" name="Start-FileLog.Removes existing file" time="0.077" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Stop-FileLog" executed="True" result="Success" success="True" time="0.165" asserts="0" description="Stop-FileLog"> <results> <test-case description="Disables File Logging" name="Stop-FileLog.Disables File Logging" time="0.165" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Write-FileLog" executed="True" result="Success" success="True" time="0.0754" asserts="0" description="Write-FileLog"> <results> <test-case description="Writes to a file" name="Write-FileLog.Writes to a file" time="0.0754" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Start-EmailLog" executed="True" result="Success" success="True" time="0.0769" asserts="0" description="Start-EmailLog"> <results> <test-case description="Enables E-mail Logging" name="Start-EmailLog.Enables E-mail Logging" time="0.0413" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Clears the entry cache" name="Start-EmailLog.Clears the entry cache" time="0.0356" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Stop-EmailLog" executed="True" result="Success" success="True" time="0.0805" asserts="0" description="Stop-EmailLog"> <results> <test-case description="Disables Email Logging" name="Stop-EmailLog.Disables Email Logging" time="0.0365" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Clears the entry cache" name="Stop-EmailLog.Clears the entry cache" time="0.0225" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Retains the entry cache" name="Stop-EmailLog.Retains the entry cache" time="0.0215" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Send-EmailLog" executed="True" result="Success" success="True" time="0.2148" asserts="0" description="Send-EmailLog"> <results> <test-case description="Sends e-mail" name="Send-EmailLog.Sends e-mail" time="0.0774" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sends on empty" name="Send-EmailLog.Sends on empty" time="0.0312" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Does not send on empty" name="Send-EmailLog.Does not send on empty" time="0.0245" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Triggers based on log level" name="Send-EmailLog.Triggers based on log level" time="0.0322" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Retains log entry cache" name="Send-EmailLog.Retains log entry cache" time="0.0217" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Empties log entry cache" name="Send-EmailLog.Empties log entry cache" time="0.0277" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Write-EmailLog" executed="True" result="Success" success="True" time="0.0453" asserts="0" description="Write-EmailLog"> <results> <test-case description="Writes to the entry cache" name="Write-EmailLog.Writes to the entry cache" time="0.0453" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Start-EventLogLog" executed="True" result="Success" success="True" time="0.2306" asserts="0" description="Start-EventLogLog"> <results> <test-case description="Enables Event Log Logging" name="Start-EventLogLog.Enables Event Log Logging" time="0.1602" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Writes an error if source is in wrong log" name="Start-EventLogLog.Writes an error if source is in wrong log" time="0.039" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Creates a new log if necessary" name="Start-EventLogLog.Creates a new log if necessary" time="0.0314" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Stop-EventLogLog" executed="True" result="Success" success="True" time="0.0487" asserts="0" description="Stop-EventLogLog"> <results> <test-case description="Disables Event Log Logging" name="Stop-EventLogLog.Disables Event Log Logging" time="0.0487" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Write-EventLogLog" executed="True" result="Success" success="True" time="0.0644" asserts="0" description="Write-EventLogLog"> <results> <test-case description="Writes to the Event Log" name="Write-EventLogLog.Writes to the Event Log" time="0.0644" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Start-HostLog" executed="True" result="Success" success="True" time="0.0852" asserts="0" description="Start-HostLog"> <results> <test-case description="Enables Host Logging" name="Start-HostLog.Enables Host Logging" time="0.0436" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets the log level" name="Start-HostLog.Sets the log level" time="0.0416" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Stop-HostLog" executed="True" result="Success" success="True" time="0.0397" asserts="0" description="Stop-HostLog"> <results> <test-case description="Disables Host Logging" name="Stop-HostLog.Disables Host Logging" time="0.0397" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Write-HostLog" executed="True" result="Success" success="True" time="0.0774" asserts="0" description="Write-HostLog"> <results> <test-case description="Writes to the host" name="Write-HostLog.Writes to the host" time="0.0774" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Start-PassThruLog" executed="True" result="Success" success="True" time="0.0838" asserts="0" description="Start-PassThruLog"> <results> <test-case description="Enables PassThru Logging" name="Start-PassThruLog.Enables PassThru Logging" time="0.0582" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Sets the log level" name="Start-PassThruLog.Sets the log level" time="0.0256" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Stop-PassThruLog" executed="True" result="Success" success="True" time="0.0421" asserts="0" description="Stop-PassThruLog"> <results> <test-case description="Disables PassThru Logging" name="Stop-PassThruLog.Disables PassThru Logging" time="0.0421" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Write-PassThruLog" executed="True" result="Success" success="True" time="0.1578" asserts="0" description="Write-PassThruLog"> <results> <test-case description="Writes to the Verbose or Information stream" name="Write-PassThruLog.Writes to the Verbose or Information stream" time="0.0559" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Writes to the Warning stream" name="Write-PassThruLog.Writes to the Warning stream" time="0.0289" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Writes to the Error stream" name="Write-PassThruLog.Writes to the Error stream" time="0.0307" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Writes to the Error stream when no Exception is included" name="Write-PassThruLog.Writes to the Error stream when no Exception is included" time="0.0422" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Start-SlackLog" executed="True" result="Success" success="True" time="0.0758" asserts="0" description="Start-SlackLog"> <results> <test-case description="Enables Slack Logging" name="Start-SlackLog.Enables Slack Logging" time="0.0758" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Stop-SlackLog" executed="True" result="Success" success="True" time="0.0429" asserts="0" description="Stop-SlackLog"> <results> <test-case description="Disables Slack Logging" name="Stop-SlackLog.Disables Slack Logging" time="0.0429" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Write-SlackLog" executed="True" result="Success" success="True" time="0.0796" asserts="0" description="Write-SlackLog"> <results> <test-case description="Calls the Slack webhook" name="Write-SlackLog.Calls the Slack webhook" time="0.0796" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Write-Log" executed="True" result="Success" success="True" time="0.0982" asserts="0" description="Write-Log"> <results> <test-case description="Calls Write- Cmdlet for enable logging methods" name="Write-Log.Calls Write- Cmdlet for enable logging methods" time="0.0982" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Get-LogLevel" executed="True" result="Success" success="True" time="0.1322" asserts="0" description="Get-LogLevel"> <results> <test-case description="Returns expected values" name="Get-LogLevel.Returns expected values" time="0.0412" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Throws on invalid EntryType" name="Get-LogLevel.Throws on invalid EntryType" time="0.091" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="Format-LogMessage" executed="True" result="Success" success="True" time="0.1189" asserts="0" description="Format-LogMessage"> <results> <test-case description="Formats a message" name="Format-LogMessage.Formats a message" time="0.0498" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Includes Exception information" name="Format-LogMessage.Includes Exception information" time="0.0234" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Includes type information" name="Format-LogMessage.Includes type information" time="0.0241" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Includes type and Exception information" name="Format-LogMessage.Includes type and Exception information" time="0.0216" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> <test-suite type="TestFixture" name="ConvertTo-HtmlUnorderedList" executed="True" result="Success" success="True" time="0.0603" asserts="0" description="ConvertTo-HtmlUnorderedList"> <results> <test-case description="Performs basic formatting" name="ConvertTo-HtmlUnorderedList.Performs basic formatting" time="0.0392" asserts="0" success="True" result="Success" executed="True" /> <test-case description="Executes a ScriptBlock to perform formatting" name="ConvertTo-HtmlUnorderedList.Executes a ScriptBlock to perform formatting" time="0.0211" asserts="0" success="True" result="Success" executed="True" /> </results> </test-suite> </results> </test-suite> </test-results> |