Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test runner with coverage #130

Closed
bvotteler opened this issue Jul 31, 2023 · 0 comments · Fixed by #131
Closed

Add unit test runner with coverage #130

bvotteler opened this issue Jul 31, 2023 · 0 comments · Fixed by #131
Assignees

Comments

@bvotteler
Copy link
Contributor

After initially mostly only having stored data with very little transformations, we are starting to use Squid with more and more complex logic to track metrics, volumes, etc. It will be beneficial to be able to easily add unit tests.

Therefore, we want to add a test runner setup with code coverage to be run in github actions for pull requests.
A good initial test case to add could be this one: #41

For code coverage, we need to exclude the generated code folders populated by squids scripts (via yarn command code:gen and gen:types:*).

Optional: Consider adding a coverage rule that needs to be passed that roughly resembles this:

  • If coverage is above 90% automatically pass
  • otherwise, expect coverage percentage to have increased.
    If this is too complex / time consuming to add as part of this issue, create a follow up one instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant