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

testmanagement for relational db #2529

Closed
r-peschke opened this issue Jul 18, 2024 · 1 comment · Fixed by #2421
Closed

testmanagement for relational db #2529

r-peschke opened this issue Jul 18, 2024 · 1 comment · Fixed by #2421
Assignees
Labels
enhancement General enhancement which is neither bug nor feature
Milestone

Comments

@r-peschke
Copy link
Member

r-peschke commented Jul 18, 2024

Base idea: create-trigger in database, which gathers all tables with inserts for each test. In tear down calls a truncate only for those tables.
Advantages:

  • No need to recreate the database, connection_pools and connections
  • Easier integrating other services and their database access

Disadvantage: Not working with a standard prefilled database or rather will be more complicated

Some times to compare, all done on my T540-Laptop:
Running latest complete tests with creating new database for all backend system tests: 3255 passed, 243 skipped, 3 warnings in 2209.43s (0:36:49)
Running latest complete tests with truncate ALL TABLE NAMES RESTART IDENTITY CASCADE for all backend system tests: 3255 passed, 243 skipped in 3898.03s (1:04:58)
Ready state on 26.08.2024 with truncate only on triggered tables: 3565 passed, 267 skipped, 1 warning in 975.12s (0:16:15)

@r-peschke r-peschke added the enhancement General enhancement which is neither bug nor feature label Jul 18, 2024
@r-peschke r-peschke added this to the 4.2 milestone Jul 18, 2024
@r-peschke r-peschke self-assigned this Jul 18, 2024
@r-peschke r-peschke linked a pull request Aug 26, 2024 that will close this issue
6 tasks
@r-peschke
Copy link
Member Author

PR #2421 was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement General enhancement which is neither bug nor feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant