Skip to content

Add tests #5

Closed
Closed

Description

@CrowdHailer

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

Activity

  1. lpil commented on Aug 11, 2020

    @lpil
    Member

    Those endpoints are intended for public use and are quite reliable. I do not want to add a docker compose dep as it's not an open standard and only works with that specific tool. I'm open to containers as they're less niche and supported by many clients, though I would prefer to have no requirement for additional software being installed (i.e. use existing services, Gleam, or Erlang)

  2. CrowdHailer commented on Aug 11, 2020

    @CrowdHailer
    ContributorAuthor

    If your happy with those endpoints, which sounds perfectly sensible. I think some of the todo Test could be removed?

  3. lpil commented on Aug 11, 2020

    @lpil
    Member
  4. jtdowney commented on Sep 16, 2026

    @jtdowney
    Member

    @lpil I think this can be closed now that #57 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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