http-rs / surf

Fast and friendly HTTP client framework for async Rust
https://docs.rs/surf
Apache License 2.0
1.45k stars 119 forks source link

Add wasm integration tests #233

Closed jbr closed 3 years ago

jbr commented 3 years ago

This PR adds integration tests that make real http requests to httpbin.org from within headless browsers using surf's wasm-client. This provides both regression testing and also is a starting place for more involved testing to ensure that the wasm client works as expected.

I couldn't figure out how to disable default features specifically for these tests, so instead i added a workspace crate that depends on the parent and exists just for running wasm tests. If there's a better way to do this, please suggest!