levinine/codecept-slim4

Codeception Module for Slim 4 Microframework.

dev-master 2020-08-26 12:11 UTC

This package is auto-updated.

Last update: 2024-04-26 20:29:39 UTC


README

This module allows you to run tests inside Slim 4 Microframework.

Install

Via commandline:

composer require --dev levinine/codecept-slim4

Config

Make sure to have config.test.yml file containing your test configuration in the root of your Slim project.

Enable module with depends, eg in tests/functional.suite.yml

modules:
  enabled:
    - \Helper\Functional
    - REST:
        depends: \Levinine\CodeceptSlim4\Module\Slim4

Develop

If on commit ECS check fails, execute:

vendor/bin/ecs check src --fix