Skip to content

Releases: dereuromark/cakephp-test-helper

2.7.0

24 Nov 20:46

Choose a tag to compare

Improvements

  • Added plugin linters

Full Changelog: 2.6.0...2.7.0

2.6.0

18 Nov 12:15
f27ee1a

Choose a tag to compare

Improvements

  • Allow parsing raw SQL and generate query builder
convert_query convert_result

Full Changelog: 2.5.0...2.6.0

2.5.0

15 Nov 08:46

Choose a tag to compare

What's Changed

  • Clickable path for the IDE using -v verbose mode
  • Add some more linters with auto-fixing
  • Enable CI run via bin/cake linter --ci
  • Enable plugin mode

Full Changelog: 2.4.0...2.5.0

2.4.0

14 Nov 02:50

Choose a tag to compare

Improvements

Custom Linter Tasks System

Added a flexible linter system for running project-specific code quality checks that don't fit into standard static analysis tools (phpcs, phpstan, rector).

Run them in locally and in your CI.

output

Key Highlights:

  • Extensible: Create custom tasks in App\Command\Linter\Task\
  • Fast: Designed for quick validation (completes in seconds)
  • Configurable: Enable/disable tasks via FQCN-based config

Included Default Tasks

Four production-ready linter tasks are included and enabled by default:

  1. no-mixed-in-templates - Enforce specific type annotations in templates (not mixed)
  2. use-orm-query - Detect incorrect Cake\Database\Query imports (should be Cake\ORM\Query\SelectQuery)
  3. use-base-migration - Flag deprecated AbstractMigration/AbstractSeed usage
  4. single-request-per-test - Validate controller tests have only one request per method

Usage Examples

  # Run all tasks
  bin/cake linter

  # Run with verbose output (shows paths)
  bin/cake linter -v

  # Run specific task
  bin/cake linter --task use-orm-query

  # List available tasks
  bin/cake linter --list

Configuration

Customize tasks in config/app.php:

'TestHelper' => [
    'Linter' => [
        'tasks' => [
            // Add custom tasks
            \App\Command\Linter\Task\MyCustomTask::class,

            // Disable default tasks
            \TestHelper\Command\Linter\Task\UseOrmQueryTask::class => false,
        ],
    ],
],

Full Changelog: 2.3.0...2.4.0

2.3.0

12 Nov 23:29

Choose a tag to compare

Improvements

It is now standalone and with 0 dependencies. No more leaking issues from the application.

  • Test your code from the browser, also directly show coverage
  • Bake your test case classes from the browser
  • More helper tooling
dashboard

Full Changelog: 2.2.1...2.3.0

2.2.1

16 Sep 13:23

Choose a tag to compare

Fixes

  • Fixed IO error usage

2.2.0

29 Jun 15:08
d385a18

Choose a tag to compare

Improvements

  • Added FixtureFactory into fixture comparison
  • Added Model comparison with Table/Entity classes and DB tables.

2.1.0

16 May 11:05
092ab34

Choose a tag to compare

Improvements

  • Added Migrations backend to allow resetting migrations: A multi-step process to ensure a fresh migration file replacing your current ones (merging all together).

2.0.4

20 Mar 11:55

Choose a tag to compare

Fixes

  • Fixed up files bundled in release using gitattributes file.

Full Changelog: 2.0.3...2.0.4

2.0.3

22 Dec 17:56
fcf2af3

Choose a tag to compare

Fixes

Fixed coverage run in case xdebug is not installed by using PHP 8 pcov