Summary
Add comprehensive tests for WordPress block code generation - evaluating how well models generate valid, error-free block markup and block.json configurations.
Current State
- Only 1 execution test for blocks (counting nested blocks)
- No
register_block_type() tests
- No
block.json schema validation
- No block rendering tests
Proposed Tests
Knowledge Tests
- Block JSON schema requirements
- Block attribute types and validation
- Block supports flags (color, spacing, typography)
- Block API versions and compatibility
Execution Tests
- Generate valid
block.json with correct schema
- Write
render_callback for dynamic blocks
- Create block patterns with proper structure
- Handle block attributes with various types (array, object, boolean)
- Block registration with proper dependencies
Why This Matters
Block development is central to modern WordPress. Testing AI models' ability to generate correct block code is essential for evaluating WordPress development capabilities.
Summary
Add comprehensive tests for WordPress block code generation - evaluating how well models generate valid, error-free block markup and
block.jsonconfigurations.Current State
register_block_type()testsblock.jsonschema validationProposed Tests
Knowledge Tests
Execution Tests
block.jsonwith correct schemarender_callbackfor dynamic blocksWhy This Matters
Block development is central to modern WordPress. Testing AI models' ability to generate correct block code is essential for evaluating WordPress development capabilities.