From 638d048e5d692839787ebc8778d8e8ac04d6628b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 24 Mar 2026 12:57:44 +0100 Subject: [PATCH 1/3] Harden test involving sqlite db name The filename was changed in the latest sqlite plugin version. Accommodate for both --- features/db-size.feature | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/features/db-size.feature b/features/db-size.feature index 2728fc17..409bd622 100644 --- a/features/db-size.feature +++ b/features/db-size.feature @@ -213,19 +213,12 @@ Feature: Display database size Given a WP install When I run `wp db size --size_format=b --format=csv` - Then STDOUT should contain: - """ - Name,Size - .ht.sqlite," - """ + Then STDOUT should match /\.ht\.sqlite(\.php)?,"/ But STDOUT should not be a number When I run `wp db size --size_format=b --format=json` - Then STDOUT should contain: - """ - [{"Name":".ht.sqlite","Size":" - """ + Then STDOUT should match /\{"Name":"\.ht\.sqlite(\.php)?","Size":"/ But STDOUT should not be a number From 494dc3273d6fa335bfdd3af696e135de10b82414 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 24 Mar 2026 13:06:03 +0100 Subject: [PATCH 2/3] Update features/db-size.feature Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- features/db-size.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/db-size.feature b/features/db-size.feature index 409bd622..a4778981 100644 --- a/features/db-size.feature +++ b/features/db-size.feature @@ -218,7 +218,7 @@ Feature: Display database size But STDOUT should not be a number When I run `wp db size --size_format=b --format=json` - Then STDOUT should match /\{"Name":"\.ht\.sqlite(\.php)?","Size":"/ + Then STDOUT should match /^\[\{"Name":"\.ht\.sqlite(\.php)?","Size":"/ But STDOUT should not be a number From 660a76a53f60bbdaacf5c6db5f95c25fa656d23c Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 24 Mar 2026 13:06:18 +0100 Subject: [PATCH 3/3] Update features/db-size.feature Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- features/db-size.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/db-size.feature b/features/db-size.feature index a4778981..b21d9949 100644 --- a/features/db-size.feature +++ b/features/db-size.feature @@ -213,7 +213,7 @@ Feature: Display database size Given a WP install When I run `wp db size --size_format=b --format=csv` - Then STDOUT should match /\.ht\.sqlite(\.php)?,"/ + Then STDOUT should match /Name,Size\n\.ht\.sqlite(\.php)?,"/ But STDOUT should not be a number