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
Just wondering if there is some way to allow testing manually
When the test exits, the verify_expectations/1 function automatically calls on_exit..... and then I get the error No HTTP request arrived at Bypass and the test fails. The thing is that this is the behaviour I am expecting from one test in a suite of tests and I want to assert that this happened.
Is there some way to catch the error in the exit and assert in the test that this is the expected behaviour?
Or alternatively, is there some way that verify_expectations/1 being run in the on_exit function could be disabled manually and run inside the test instead?
Running the function manually is also not possible at the moment as the function raises an error Not available in ExUnit, as it's configured automatically.
The text was updated successfully, but these errors were encountered:
Description:
verify_expectations
Just wondering if there is some way to allow testing manually
When the test exits, the
verify_expectations/1
function automatically callson_exit
..... and then I get the errorNo HTTP request arrived at Bypass
and the test fails. The thing is that this is the behaviour I am expecting from one test in a suite of tests and I want to assert that this happened.Is there some way to catch the error in the exit and assert in the test that this is the expected behaviour?
Or alternatively, is there some way that
verify_expectations/1
being run in theon_exit
function could be disabled manually and run inside the test instead?Running the function manually is also not possible at the moment as the function raises an error
Not available in ExUnit, as it's configured automatically.
The text was updated successfully, but these errors were encountered: