Skip to content
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

Extend fdktest with test helpers for executing handlers with a runner #22

Open
jsteenb2 opened this issue Jun 15, 2024 · 0 comments
Open

Comments

@jsteenb2
Copy link
Collaborator

jsteenb2 commented 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 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

@jsteenb2 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
@jsteenb2 jsteenb2 reopened this Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant