Skip to content

Manage test schema with migrations #487

@pabloelcolombiano

Description

@pabloelcolombiano

This is a (multiple allowed):

  • enhancement
  • feature-discussion (RFC)
  • CakePHP Version: 4.3

Background

CakePHP 4.3 will feature the management of the test DB schema out of the test fixtures. A first step achieved is to import the test schema using one or several SQL file(s) (PR here).

Enhancement

For developers using migrations, the separation of schema management and test fixtures is particularly interesting since the schema of the test DB:

  • may be managed by the migrations themselves,
  • does not need to be recreated if the schema was not modified between to runs of test,
  • incorporates the migrations in the testing cycle.

Implementation

The CakePHP Test Migrator plugin manages already the test DB schema with migrations. The goal of this enhancement is to incorporate the Migrator's logic in the present packages code, and have the Migrator deprecated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions