# 👷🏾 Testing Standard

Software testing (opens new window) is the activity of checking software quality under a test. It is carried to ensure that the software system is free of errors. It helps to detect bugs, errors, missing requirements, etc.

Testing is all about make sure that the software behave as expected. That the software will always responds in a predictable way every time.

👍🏾 Chevere tests are located at Chevere\Tests (opens new window) namespace

# Testing Framework

Tests should be always compatible with the latest PHPUnit (opens new window) production release. Code coverage requires to install pcov (opens new window).

# Requirements

# Conventions

  • Must be named with Test suffix
  • Must be located at Tests/<component>/

# Configuration

Configuration for PHPUnit can be found at phpunit.xml. The configuration at phpunit-report.xml does testing with code coverage.

# Running tests

To run tests:

vendor/bin/phpunit -c phpunit.xml

To run tests with code coverage report at ./build/coverage/:

vendor/bin/phpunit -c phpunit-report.xml

To run filtered tests use the --filter option:

vendor/bin/phpunit -c phpunit-report.xml --filter ActionTest


Check PHPUnit Documentation (opens new window) for all available options.