Fix a confusion between 'cleanup' and 'skip_cleanup_if_failed' configuration params

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

@iliayatsenko is already working on this.

Since Dec 3, 2024.

  • #76 by @iliayatsenko — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
php

Research direction

The issue names the cleanup and skip_cleanup_if_failed configuration parameters but does not identify files or tests. Start by locating their definitions and documentation, then determine how both behaviors are described and where a future rename would affect users. Done means the two cleanup responsibilities are clearly distinguished and the proposed naming change is resolved for a major version.

Written by the indexing model from the issue text.

Description

Problem

Currently we have configuration params cleanup and skip_cleanup_if_failed.
Despite their names sound similar, they are responsible for completely different things: cleanup controls the database re-creation before each test, and skip_cleanup_if_failed controls whether records, added by haveInDatabase() should be erased after the test.

Suggested fix

It would be good to distinguish these two 'cleanups' in documentation and in the names of config params in next major versions.
For example, to rename cleanup to repopulate (since we have populate responsible for initial database creation).

Dominant language
PHP
Stars
23
Forks
31
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-db

All issues in Codeception/module-db

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.