Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 389 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 389 Bytes

cargo-fixture HTTP example

In the fixture, a very simple HTTP responder is run, listening on an OS-provided TCP port. The port number is then exposed in the the HTTP_PORT environment variable.

The test code then reads this variable and performs a request against the server. Back in the fixture, the server is shut down after tests are run.