diff --git a/Functions/It.ps1 b/Functions/It.ps1 index 94ca04332..ed7de16f1 100644 --- a/Functions/It.ps1 +++ b/Functions/It.ps1 @@ -65,7 +65,8 @@ param( [ScriptBlock] $test = $(Throw "No test script block is provided. (Have you put the open curly brace on the next line?)") ) - + $PesterException = $null + $Time = Measure-Command { try{ &{ &$test }