Skip to content

test: Use real Postgres Docker image for Postgres tests - #6484

Open
michaelkedar wants to merge 3 commits into
google:masterfrom
michaelkedar:postgres-test-container
Open

michaelkedar wants to merge 3 commits into
google:masterfrom
michaelkedar:postgres-test-container

Conversation

@michaelkedar

Copy link
Copy Markdown
Member

Instead of having to mock the Postgres functions (which doesn't really test the Postgres), spawn and populate dedicated Postgres docker image for the Postgres-specific tests (similar to how we use Datastore emulator).

@codecov-commenter

codecov-commenter commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.19%. Comparing base (fbd23a0) to head (8db0414).
⚠️ Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6484      +/-   ##
==========================================
+ Coverage   57.00%   57.19%   +0.19%     
==========================================
  Files         225      224       -1     
  Lines       23494    23495       +1     
==========================================
+ Hits        13392    13438      +46     
+ Misses      10099    10054      -45     
  Partials        3        3              
Flag Coverage Δ
go 61.40% <100.00%> (+0.33%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…tainer

# Conflicts:
#	go/internal/database/postgres/vulnerability_test.go
@michaelkedar
michaelkedar requested review from a team and jess-lowe December 3, 2026 00:13

This branch has not been deployed

No deployments
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.

2 participants