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

test: Automation of the unit testing environment #46

Open
avdb13 opened this issue Mar 18, 2024 · 1 comment
Open

test: Automation of the unit testing environment #46

avdb13 opened this issue Mar 18, 2024 · 1 comment

Comments

@avdb13
Copy link
Collaborator

avdb13 commented Mar 18, 2024

Currently testing feels like moping a floor under a running tap, mainly because of the following problems:

  1. As we're not exposing the homeserver configuration to the end-user (for now), we need a way to automate the generation of it
  2. We have to run just backend separately before testing and restart in case changes are made to the aforementioned file
  3. There's no clear way of separating errors caused by the problems mentioned above yet from actual endpoint errors
@avdb13 avdb13 added this to the Alpha release milestone Mar 18, 2024
@avdb13 avdb13 changed the title Make testing environment easier to work with Todo: Automation of the testing environment Mar 18, 2024
@ChurchOfTheSubgenius ChurchOfTheSubgenius removed this from the Alpha release milestone Mar 25, 2024
@avdb13
Copy link
Collaborator Author

avdb13 commented Mar 29, 2024

Relevant article: https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html

Unit tests for request/responses could be implemented more flexibly with a macro that tries out all possbible variants of a given type. Let's rely on API tests only for now until all required Matrix endpoints for the alpha release are set in stone.

@avdb13 avdb13 changed the title Todo: Automation of the testing environment test: Automation of the unit testing environment Mar 29, 2024
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

No branches or pull requests

2 participants