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

feat: simplify humatest, allow sending body slice/map/struct, docs #155

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

danielgtaylor
Copy link
Owner

This PR:

  • Simplifies humatest by removing the custom test context & adapter, instead exposing the context/adapter creation for humachi and piggybacking on that, which also improves the level of dog-fooding in the project.
  • Enables the use of a slice/map/struct as input to the test API request functions, which will then automatically add a Content-Type: application/json header and serialize the input as JSON for the request body.
  • Documentation updates & examples, which result in nice VSCode popups showing how to use the calls.
Screenshot 2023-10-25 at 09 00 33

@danielgtaylor danielgtaylor merged commit 158ea48 into main Oct 25, 2023
3 checks passed
@danielgtaylor danielgtaylor deleted the humatest-improvements branch October 25, 2023 16:15
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

Successfully merging this pull request may close these issues.

1 participant