Search

Official Extensions

DotReporter

See Source

DotReporter provides less verbose output for test execution. Like PHPUnit printer it prints dots “.” for successful tests and “F” for failures.

 ..........
 ..........
 ..........
 ..........
 ..........
 ..........
 ..........
 ..........

Time: 2.07 seconds, Memory: 20.00MB

OK (80 tests, 124 assertions)

Enable this reporter with --ext option

codecept run --ext DotReporter

Failures and Errors are printed by a standard Codeception reporter. Use this extension as an example for building custom reporters.

Logger

See Source

Log suites/tests/steps using Monolog library. Monolog should be installed additionally by Composer.

composer require monolog/monolog

Codeception’s core/internal stuff is logged into tests/_output/codeception.log. Test suites’ steps are logged into tests/_output/<test_full_name>-<rotation_date>.log.

To enable this module add to your codeception.yml:

extensions:
    enabled: [Codeception\Extension\Logger]

Config

  • max_files (default: 3) - how many log files to keep

Recorder

See Source

Saves a screenshot of each step in acceptance tests and shows them as a slideshow on one HTML page (here’s an example). Works only for suites with WebDriver module enabled.

The screenshots are saved to tests/_output/record_* directories, open index.html to see them as a slideshow.

Installation

Add this to the list of enabled extensions in codeception.yml or Acceptance.suite.yml