Skip to content

feat: add support packages for end-to-end testing #2021

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

Merged
merged 3 commits into from
May 13, 2025
Merged

feat: add support packages for end-to-end testing #2021

merged 3 commits into from
May 13, 2025

Conversation

cstockton
Copy link
Contributor

Added 3 new packages in the "e2e" directory to make writing tests that needed an API server, hook server or both easier. Also added some simple helpers for config and connection loading from within unit tests.

The packages:

  • Package e2e provides a few utilities for use in unit tests.
  • Package e2eapi provides utilities for end-to-end testing the api.
  • Package e2ehooks provides utilities for end-to-end testing of hooks.

Added 3 new packages in the "e2e" directory to make
writing tests that needed an API server, hook server or
both easier. Also added some simple helpers for config
and connection loading from within unit tests.

The packages:
- Package e2e provides a few utilities for use in unit tests.
- Package e2eapi provides utilities for end-to-end testing the api.
- Package e2ehooks provides utilities for end-to-end testing of hooks.
@cstockton cstockton marked this pull request as ready for review May 13, 2025 18:13
@cstockton cstockton requested a review from a team as a code owner May 13, 2025 18:13
Copy link
Contributor

@hf hf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge once it compiles

@coveralls
Copy link

coveralls commented May 13, 2025

Pull Request Test Coverage Report for Build 15004803893

Details

  • 115 of 122 (94.26%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 69.643%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/e2e/e2e.go 28 29 96.55%
internal/e2e/e2eapi/e2eapi.go 87 93 93.55%
Totals Coverage Status
Change from base Build 14865651045: 0.3%
Covered Lines: 10952
Relevant Lines: 15726

💛 - Coveralls

@cstockton cstockton merged commit 269ddfe into master May 13, 2025
4 checks passed
@cstockton cstockton deleted the cs/e2e branch May 13, 2025 19:54
hf pushed a commit that referenced this pull request May 19, 2025
🤖 I have created a release *beep* *boop*
---


##
[2.173.0](v2.172.1...v2.173.0)
(2025-05-17)


### Features

* add support packages for end-to-end testing
([#2021](#2021))
([269ddfe](269ddfe))


### Bug Fixes

* add `supafast` tarball for upgrading auth via supabase-admin-api
([#2009](#2009))
([9b55785](9b55785))
* allow HTTP with localhost in solana
([#2027](#2027))
([3ee02f0](3ee02f0))
* fix `supafast` tarball generation
([#2011](#2011))
([88bb2c0](88bb2c0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants