Skip to content

Latest commit

 

History

History

http

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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.