Skip to content

Proposal: use a small test server for testing rather than external services #56

@jtdowney

Description

@jtdowney

I was starting to play with extending gleam_httpc for something, and ran into the tests failing due to an external service change. From my experience and a brief survey of the Go, Python, and Rust ecosystems, I was surprised to see gleam_httpc only tests against external services instead of starting a small test server with known responses and hitting that. This becomes more relevant the more feature-rich you need the tests to be (mTLS, custom CAs, streaming, etc.) or when you need to test edge cases. I am sure this was considered before, but I didn't see any prior issue discussing the approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions