Skip to content

[Feature][Testing] Create a Go client for Devlake for testing #4353

Description

@keon94

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Use case

Useful for running full-blown end-to-end tests against Devlake in a simplified fashion.

Description

Write a Go client so we can spin up a quick Devlake server in-memory using a main-function/test-case. This is useful for when there is no UI. People use curl to hit these endpoints, but it is much more convenient to keep everything in Go and have the client use Go datatypes instead of raw JSONs where possible. Additionally, this allows us to compile select plugins as part of the server code, which is almost instant; as opposed to compiling them into *.so libraries everytime we make a change to test, which is also slower.
I have been using this in a private directory for a couple of months and it has been massively useful and efficient for me.

Related issues

Done as part of #3701

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

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

Metadata

Metadata

Assignees

Labels

type/feature-requestThis issue is a proposal for something new

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions