Building New Test Servers Using Bypass

Get introduced to the Bypass dependency to build ad-hoc HTTP servers on the fly.

Writing our server from scratch works fine, but there’s room for improvement. For example, in our test server, we’re only asserting that the q and APPID parameters are strings, but we’re not checking that they’re the same strings as specified in the test.

To do that, we would have to hard-code those strings in the test server code, which means that we’d have to build new test servers to test different scenarios. There’s a tool called Bypass that helps in this situation.

Get hands-on with 1200+ tech skills courses.