konstantinvlasenko / PowerSlim

Fitnesse Slim implementation in PowerShell. PowerSlim makes it possible to use PowerShell in the acceptance testing
powerslim.org
GNU General Public License v3.0
48 stars 21 forks source link

Silentlycontinue raises exception #72

Closed konstantinvlasenko closed 9 years ago

konstantinvlasenko commented 9 years ago

@2xmax Tests are Yellow right now after this https://github.com/konstantinvlasenko/PowerSlim/pull/71 Please, check new test case https://github.com/konstantinvlasenko/PowerSlim/commit/632913e02afa0e8d231fb10ba200f89c2f4ac964

konstantinvlasenko commented 9 years ago

The behavior of try/catch is to catch terminating errors (exceptions). This means Non-terminating (operational) errors inside a try block will not trigger a Catch. -erroraction silentlycontinue turns all errors to Non-terminating behavior. This line https://github.com/konstantinvlasenko/PowerSlim/pull/71/files#diff-3a586a9b299992da7ba63a2496a138f2R259 breaks this approach. @2xmax do you agree?