How to do integration testing with HTTP.jl?

question
testing
#1

I’m building out a package that wraps an API using HTTP.jl. One thing I’m having trouble with is figuring out how to do integration testing. In the past, I’ve used python requests and just used mocking with responses to do such testing. What have y’all done for integration testing with HTTP.jl? I’ve thought about just spinning up a server with HTTP.jl on a different port to test against, but the API only exists on 80/443, so I can’t justify including an option for specifying the port in the package just so that I can run tests using that option.

0 Likes