Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
db size: Accept megabytes in the human readable precision test
The database of a WordPress installation is a few hundred kilobytes
today, but the scenario should not start failing the day it grows past
a megabyte.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WA7GLFtiJMyt4ZwaDq194v
  • Loading branch information
swissspidy and claude committed Sep 15, 2026
commit 5362d5a0aa5beefed867cbdf4ddd3e4a29859723
6 changes: 3 additions & 3 deletions features/db-size.feature
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ Feature: Display database size
Given a WP install

When I run `wp db size --human-readable`
Then STDOUT should match /\d+\.\d+ KB/
Then STDOUT should match /\d+\.\d+ (KB|MB)/

When I run `wp db size --human-readable --decimals=0`
Then STDOUT should match /\d+ KB/
And STDOUT should not match /\d+\.\d+ KB/
Then STDOUT should match /\d+ (KB|MB)/
And STDOUT should not match /\d+\.\d+ (KB|MB)/

@require-mysql-or-mariadb
Scenario: Display database size in bytes with specific format for a WordPress install
Expand Down