Dependencies

You might be surprised, but for integration testing, we don't need a lot of dependencies, because we will use an HTTP client and the serde family of crates to serialize requests and deserialize responses:

cookie = "0.11"
rand = "0.6"
reqwest = "0.9"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
uuid = { version = "0.5", features = ["serde", "v4"] }

Also, we need the uuid crate to generate unique values, and the cookie crate to support cookies in our HTTP requests, because integration tests have to keep the session to make a sequence of meaningful requests.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.178.237