예제 #1
0
 public void OnScenarioEnd()
 {
     lock (Lock)
     {
         _engine.OnScenarioEnd();
     }
 }
예제 #2
0
        public void OnScenarioEnd()
        {
            _engine.OnScenarioEnd();

            var te = ScenarioContext.Current?.TestError;

            _currentTestRun.Output         = OutputHelper.GetOutput();
            _currentTestRun.Result         = te == null ? "Passed" : (te is AssertionException ? "Failed" : "Error");
            _currentTestRun.TestMessage    = te?.Message ?? "";
            _currentTestRun.TestStackTrace = te?.StackTrace ?? "";

            _reporter.TestFinished(_currentTestRun);

            OutputHelper.Flush();
        }