Skip to content

Add container reset feature + postgres impl#699

Draft
orlangure wants to merge 1 commit into
masterfrom
container-reset
Draft

Add container reset feature + postgres impl#699
orlangure wants to merge 1 commit into
masterfrom
container-reset

Conversation

@orlangure

Copy link
Copy Markdown
Owner

This feature allows to reset containers to their initial state between tests, when reused.

As the first example, I implemented Reset function for postgres preset. It drops schemas and deletes users, and then calls the regular init function to restore the state requested by user options in the beginning. New postgres test suite demonstrates how the feature can be used.

This feature allows to reset containers to their initial state between
tests, when reused.

As the first example, I implemented Reset function for postgres preset.
It drops schemas and deletes users, and then calls the regular init
function to restore the state requested by user options in the
beginning. New postgres test suite demonstrates how the feature can be
used.
@orlangure orlangure self-assigned this Oct 21, 2022
@codecov-commenter

codecov-commenter commented Oct 21, 2022

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.33333% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.41%. Comparing base (f6a5b27) to head (4ab136b).
⚠️ Report is 93 commits behind head on master.

Files with missing lines Patch % Lines
preset/postgres/preset.go 51.21% 10 Missing and 10 partials ⚠️

❌ Your patch check has failed because the patch coverage (58.33%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #699      +/-   ##
==========================================
- Coverage   85.80%   85.41%   -0.39%     
==========================================
  Files          49       49              
  Lines        2310     2358      +48     
==========================================
+ Hits         1982     2014      +32     
- Misses        170      178       +8     
- Partials      158      166       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cgeers

cgeers commented Jan 31, 2023

Copy link
Copy Markdown

very useful. this looks great! 👍

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