Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 962 Bytes

CONTRIBUTING.md

File metadata and controls

45 lines (28 loc) · 962 Bytes

Contributing to Black Flag

Tests

PHPunit

Acceptable coverage baseline: 80%

Locally run the tests suite with make sure or:

  docker-compose exec php vendor/bin/phpunit --testdox

Mutation testing

Infection

  • Acceptable Mutation Score Indicator (MSI): 80%
  • Acceptable Covered Code Mutation Score Indicator: 90%

Locally run the tests suite with make bulletproof or:

  docker-compose exec php vendor/bin/infection

Code quality

phpstan

psalm

Locally run the static analysis with make better or:

  docker-compose exec php vendor/bin/phpstan analyse
  docker-compose exec php vendor/bin/psalm