Repository navigation
Expect the configured test database name - #238
Conversation
Some scenarios expected the test database to be called wp_cli_test, which only holds with the default configuration, and not for parallel test workers, which each use their own database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
DB_NAME output expectations features/config-backcompat.feature, features/config-get-field.feature |
Back-compatibility, default-config, and custom-config scenarios expect {DB_NAME} for DB_NAME constant lookups, including plain, JSON, and YAML output. |
Estimated code review effort: 1 (Trivial) | ~4 minutes
Change: Bug fix
Suggested reviewers: swissspidy
Merge Risk: 
Minimal · up to 91fd0
-
The test expectations now support customized database names and are ready to merge.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Some scenarios in
config-get-field.featureandconfig-backcompat.featureexpected the test database to be calledwp_cli_test. That only holds with the defaultWP_CLI_TEST_DBNAME, and not when running the tests in parallel workers, which each use their own database (wp-cli/wp-cli-tests#405). They now expect{DB_NAME}.With
WP_CLI_TEST_DBNAME=wp_cli_test_7, 6 of these 26 scenarios fail onmainand all pass with this change. Found through #237.Summary by CodeRabbit