Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Split e2e fixtures from anonymized dump #5

Closed
inyono opened this issue Feb 5, 2020 · 2 comments
Closed

Split e2e fixtures from anonymized dump #5

inyono opened this issue Feb 5, 2020 · 2 comments

Comments

@inyono
Copy link
Member

inyono commented Feb 5, 2020

We shoud probably split the fixtures intended for testing from the dump for a couple of reasons:

  • We can't update the anonymized dump easily
  • We can't run the e2e tests in staging (since they don't have that stuff)
  • It's hard to update the test data

To achieve this, we should IMHO:

  • Add another database (with minimal schema / data) that is intended for automated testing, generated via migrations. This way, the anonymized dump can be exchanged / kept up to date. And the testing database can be rolled back whenever (maybe even similar to django after every test), should also be easily applicable to staging / production deployments
@hugotiburtino
Copy link
Member

Add another database (with minimal schema / data) that is intended for automated testing, generated via migrations.

Interesting solution, I will think about it along side with the idea of having just one repo setting up tests for backend

@hugotiburtino hugotiburtino transferred this issue from serlo/serlo.org-legacy Jan 16, 2023
@hugotiburtino
Copy link
Member

Actually, we can run now e2e tests against staging, so it is not really a problem anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants