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
its important to include the runners as part of testing. A big component of this is the fact that we do have opinions in the runners, like File normalization, and will likely be extended in the future. We need a simple way to test handlers with the runner. The most obvious approach would be to have either an httptest instance, or do it all in process (nothing hits the wire), similar to issuing httptest.NewRequest|Records. With that test runner in place, we'd be able to take advantage of this within tests.
We could extend this further to provide a fluent API similar to how testttp works
The text was updated successfully, but these errors were encountered:
jsteenb2
changed the title
Extend fdktest with test helpers for executing handlers with the runner
Extend fdktest with test helpers for executing handlers with a runner
Jun 15, 2024
its important to include the runners as part of testing. A big component of this is the fact that we do have opinions in the runners, like File normalization, and will likely be extended in the future. We need a simple way to test handlers with the runner. The most obvious approach would be to have either an
httptest
instance, or do it all in process (nothing hits the wire), similar to issuinghttptest.NewRequest|Record
s. With thattest runner
in place, we'd be able to take advantage of this within tests.We could extend this further to provide a fluent API similar to how testttp works
The text was updated successfully, but these errors were encountered: