Pics or it didn't run
If you open pull requests for backend work, this one is for you: a quick way to show reviewers your change really ran, even when there is no screen to take a picture of.
My pull request this week added a couple of database tables and the code that reads and writes them. No buttons, no pages. The usual proof is "tests pass," so I went looking at how other teams handle this. The advice was pretty consistent:
- "Tests pass" on its own is a claim, not proof. Show the output.
- Show the real thing working, like the rows your code wrote.
- For a database change, show that the migration ran (a migration is a script that changes the database's structure) and that the new tables and columns are really there.
- Put the commit ID in the picture, so nobody has to wonder which version you tested.
GitLab's database review guidelines are a good read if you want the strict version.
I was about to do all of this by hand in a SQL tool. Instead I asked Claude to make the screenshots for me. It ran each query against my local database and turned each result into a small card: a title, one line saying what it proves, the query itself, the results, and a footer with the server, database, branch and commit. Then it opened each card in a browser and saved a picture of it.
Six labeled images, ready to drag into the pull request. It also noticed one image had its last column cut off, widened the page, and took them all again so the timestamps matched.
Next I want to turn this into a reusable skill, so the rest of the team can ask for the same thing on their own pull requests.
Drafted with an assistant, edited by @wintaru
0 comments