magento-lts icon indicating copy to clipboard operation
magento-lts copied to clipboard

PhpUnit: added & update some tests

Open sreichel opened this issue 1 year ago • 1 comments

  • [x] merged phpunit and sonar, to not run tests twice
  • [x] added tests to php-cs-fixer/phpcs checks
  • [x] added tests to phpstan (passing Level 9)
  • [x] updated some tests and added test from testfield
  • [x] install Openmage database for tests

Test: run vendor/bin/phpunit

  • closes https://github.com/OpenMage/magento-lts/issues/4139

Todo: (another PR)

Publish sonar results for UnitTests.

sreichel avatar Aug 02 '24 22:08 sreichel

For local tests in phpstorm ...

  • run phpunit with coverage (see ddev command)
  • in phpstorm hit alt+ctrl+6 to select coverage file
  • select clover.xml from dev/tests directory

You should see which files/lines are covered by tests.

sreichel avatar Aug 21 '24 00:08 sreichel