Skip to content
Jon Wagner edited this page Feb 18, 2013 · 2 revisions

The Test Log

As the tests are run, PSate outputs the test groups and test cases. Groups are colored white, and the test cases are green or red, depending on the result of the test. The tests are indented for each level of organization.

Describing Band
  Given two numbers
    [+] It adds properly [435 ms]
    [-] It breaks [4 ms]
        Expected that (actual) (3) Be (11)
        at <ScriptBlock>, C:\projects.net\Psst\PSate\tests\Other.Tests.ps1: line 24
        at <ScriptBlock>, C:\projects.net\Psst\PSate\tests\Other.Tests.ps1: line 5

Note that when a failure is emitted, PSate also emits the stack trace, but filters out any stack lines from PSate, PSMock or PShould, since that's just noise and won't help you find the issue with your code.

Anything written to the output stream during a test run is automatically output to the stream in yellow. This makes it easy to find debug messages or view the progress of your tests.

Describing Band
  Given two numbers
  **Running my setup**
    [+] It adds properly [435 ms]
  **Running my setup**
    [-] It breaks [4 ms]
        Expected that (actual) (3) Be (11)
        at <ScriptBlock>, C:\projects.net\Psst\PSate\tests\Other.Tests.ps1: line 24
        at <ScriptBlock>, C:\projects.net\Psst\PSate\tests\Other.Tests.ps1: line 5