Closed shaun-od closed 1 month ago
Looking at the code, I think this is because the method CatchAndReturn
in the SailfishExecutionEngine
creates and returns a TestCaseExecutionResult
using the constructor that takes just the exception.
Couldn't it create a new TestCaseExecutionResult
using the preexisting constructor that allows the TestInstanceContainer
and Exception
to be passed in?
Thanks @shaun-od I'll address this today. Let me know if you're planning on putting up a PR 🙏
using the preexisting constructor that allows the TestInstanceContainer and Exception to be passed in
Yes - this is the way 👍
Describe the bug When an exception is thrown in the lifecycle method
SailfishGlobalSetup
the exception appears in theCompiledTestCaseResult
but without aTestCaseId
.To Reproduce Steps to reproduce the behavior:
GlobalSetupExceptionsAreHandled
Expected behavior I would expect the test invoked when the setup method is being called that throws the exception, would be included in the returned object.