Skip to content

Feature/improve test coverage#8

Open
dgershman wants to merge 5 commits intomainfrom
feature/improve-test-coverage
Open

Feature/improve test coverage#8
dgershman wants to merge 5 commits intomainfrom
feature/improve-test-coverage

Conversation

@dgershman
Copy link
Contributor

No description provided.

dgershman and others added 5 commits January 27, 2026 21:57
Add test coverage for all plugin classes using Brain Monkey for WordPress
function mocking. Creates 8 new test files and expands existing ShortcodesTest.

Test files added:
- CacheManagerTest (12 tests for transient caching)
- GitHubApiTest (11 tests for GitHub API)
- WordPressApiTest (12 tests for WordPress.org API)
- SchedulerTest (10 tests for WP-Cron)
- BlockTest (9 tests for Gutenberg block)
- PluginTest (11 tests for main plugin)
- FunctionsTest (3 tests for helpers)
- AdminTest (17 tests for admin/AJAX)

Total: 108 tests with 215 assertions (5 skipped pending patchwork config).

Also adds common WordPress function stubs to TestCase.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Calls PLUGIN_UPDATE_WEBHOOK after successful release to trigger
plugin update on bmlt.app.

Also restores the Publish Release step that was commented out.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move all plugin class loading to bootstrap.php to prevent
Cannot redeclare class errors when tests run in parallel.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PHPCS warning: Generic.CodeAnalysis.UselessOverridingMethod.Found

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant