Skip to content

New Test Suite: Block Code Generation #6

@jnealey-godaddy

Description

@jnealey-godaddy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions