Skip to content

How to do testing? #168

Answered by maxcountryman
ckruse asked this question in Q&A
Jan 22, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

In the integration tests we've used reqwest with cookie management enabled. If you're using oneshot, you could manage the cookies manually but pulling them off the response headers and then attaching them to request headers. It's a little tedious so it's probably worth writing some test helpers for that. It might even make sense to consider incorporating some of those facilities into the crate itself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ckruse
Comment options

Answer selected by ckruse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #167 on January 22, 2024 16:45.