-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#437 Expose an event to skip suite errors #495
Conversation
Exposes an event to make it possible to skip errors from unhandled handler functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why you wouldn't just raise the event directly on the facade. You don't need the 'wrapper' functions and without them, you also don't have a confusing naming issue...
src/Tools/Performance Toolkit/App/src/BCPTTestSuite.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Tools/Performance Toolkit/App/src/BCPTTestSuite.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Tools/Performance Toolkit/App/src/BCPTTestSuite.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Tools/Performance Toolkit/App/src/BCPTTestSuite.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Tools/Performance Toolkit/App/src/BCPTTestSuite.Codeunit.al
Outdated
Show resolved
Hide resolved
@ChethanT do you think this can go into next release? Meaning do you have time to merge it before the break? 😬 |
Co-authored-by: Chethan Thopaiah <[email protected]>
Co-authored-by: Chethan Thopaiah <[email protected]>
We've got approval from @ChethanT, but the build is failing. Seems just to be some unused variables though, which should be easy to fix. One more round, and we can get this PR merged 😊 |
Review comments have been addressed.
Summary
This PR exposes an event to make it possible to skip an unwanted error when running a BCPT suit.
The idea was to expose an event i BCPTLine codeunit.
However, during the implementation I discovered that [BCPTLine codeunit has access internal] (https://github.com/microsoft/BCApps/blob/faeca5adabaa2e2b7644d744e21f9a1f97d1d971/src/Tools/Performance%20Toolkit/App/src/BCPTLine.Codeunit.al#L12).
To solve this I created a wrapper subscriber in BCPTTestSuite and calls another event that is public.
I hope this workaround is acceptable.
Work Item(s)
Fixes #437
Fixes AB#498190
Fixes AB#498190