← ClaudeAtlas

testinglisted

Write and run PHPUnit tests for Silver Assist WordPress plugins. Covers WordPress Test Suite integration, test bootstrap, base TestCase class, factory patterns, database schema handling, test naming conventions, and common testing patterns. Use when writing new tests, debugging test failures, or setting up test infrastructure.
SilverAssist/agents-toolkit · ★ 1 · Testing & QA · score 64
Install: claude install-skill SilverAssist/agents-toolkit
# Silver Assist — Testing This skill covers the testing strategy for Silver Assist WordPress plugins, including PHPUnit configuration, WordPress Test Suite integration, test patterns, and best practices. ## When to Use - Writing new unit or integration tests - Setting up test infrastructure for a new plugin - Debugging test failures - Understanding WordPress Test Suite patterns - Dealing with database operations in tests - Running tests locally or in CI ## Prerequisites - `composer install` completed - For integration tests: WordPress Test Suite installed - PHPUnit 9.6+ (via Composer) - yoast/phpunit-polyfills (via Composer) --- ## Test Infrastructure Setup ### PHPUnit Configuration File: `phpunit.xml.dist` ```xml <?xml version="1.0" encoding="UTF-8"?> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd" bootstrap="tests/bootstrap.php" colors="true" verbose="true" stopOnFailure="false" stopOnError="false" beStrictAboutOutputDuringTests="true" beStrictAboutTodoAnnotatedTests="true"> <testsuites> <testsuite name="unit"> <directory suffix="Test.php">./tests/Unit</directory> </testsuite> <testsuite name="integration"> <directory suffix="Test.php">./tests/Integration</directory> </testsuite> <testsuite name="all"> <directory suffix="Test.php">./tests/Unit</directory>