You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And how would you have setup the degisterOnceErrorHandler in your test suite if it existed?
Is not registering the error handler integrations not an good compromise here? I'm assuming your integration tests don't test for unhandled or fatal errors caught by Sentry? Or do they?
Is not registering the error handler integrations not an good compromise here? I'm assuming your integration tests don't test for unhandled or fatal errors caught by Sentry? Or do they?
Sure but then my tests skip some part of code that get's executed in prod and therefore do not cover it.
Currently my workaround in teardown looks similar to this:
Activity
[-]Add a way to cleanup error handler[/-][+]Add a way to cleanup error and exception handlers[/+]cleptric commentedon Feb 7, 2024
That makes sense, let me try to use PHPUnit 11 in the SDK tests and see what happens 😄
4 remaining items
simPod commentedon Feb 20, 2024
When doing full app integration tests I want to simulate the same environment as is in prod in order to test exactly the same thing that runs there.
stayallive commentedon Feb 20, 2024
And how would you have setup the
degisterOnceErrorHandler
in your test suite if it existed?Is not registering the error handler integrations not an good compromise here? I'm assuming your integration tests don't test for unhandled or fatal errors caught by Sentry? Or do they?
simPod commentedon Feb 22, 2024
Sure but then my tests skip some part of code that get's executed in prod and therefore do not cover it.
Currently my workaround in teardown looks similar to this:
as imperfect as it may be, it allowed me to run my tests with phpunit 11 without compromising coverage.
simPod commentedon May 15, 2024
@cleptric what is the sentry's statement on this?
cleptric commentedon May 15, 2024
What @stayallive said.