gleam-lang / gleam-lang/httpc

Add tests

Open
#5 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Gleam
Stars
175
Forks
31
PR merge metrics
No merged PRs in 30d

Description

At the moment the tests are probably quite thorough because the hit a real API endpoint.
However this means they are somewhat fragile.

Also all the functions are marked as `TODO: test`
@lpil do you have an idea on how you would like to test these functions?

In magpie I ran tests against a locally running version of httpbin.org however that did add a dependence on docker, which I'm unsure if you want to add as a requirement for contributing. I also haven't played much with github workflows so am unsure what that would take

https://github.com/midas-framework/magpie/blob/master/test/magpie_test.gleam#L12
https://github.com/midas-framework/magpie/blob/master/docker-compose.yml#L24-L27

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.