Page MenuHomeDevCentral

Configure PHPUnit and PHP_CodeSniffer
ClosedPublic

Authored by dereckson on Feb 21 2022, 03:02.
Tags
None
Referenced Files
F11744474: D2544.id6433.diff
Fri, Sep 19, 08:08
Unknown Object (File)
Thu, Sep 18, 11:16
Unknown Object (File)
Sun, Sep 14, 11:33
Unknown Object (File)
Sat, Sep 13, 08:45
Unknown Object (File)
Fri, Sep 12, 18:03
Unknown Object (File)
Fri, Sep 12, 18:03
Unknown Object (File)
Thu, Sep 11, 07:34
Unknown Object (File)
Thu, Sep 11, 06:55
Subscribers
None

Details

Summary

Quality tools like phpunit and phpcs can run across all the repository
testing and linting all libraries at once.

Some configuration files will be dynamic and grow when we add more
libraries to the repository.

As such, maintain a small collection of metadata on the libraries
allows to create templates.

Templates use Jinja2 and are rendered by a small Python script.

Each time a library is added to the repository, make regenerate
allows to create those files. Autogenerated files are stable enough
to be included in the repository too.

Ref T1680

Test Plan

make regenerate, then phpunit and phpcs

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Passed
Unit
No Test Coverage
Branch
generate-phpcs-phpunit
Build Status
Buildable 3981
Build 4233: arc lint + arc unit