Skip to content

Released: Pyrameter 0.2.0

Choose a tag to compare

@samsonasik samsonasik released this 16 Jun 06:40
0.2.0
1f99a72

ci build Code Coverage PHPStan

This release removes the Unknown type. Tests that cannot be inspected now fall back to Unit, making the reported shape easier to understand and verify.

This also show the pyramid visualization:

โžœ  pyrameter git:(main) vendor/bin/phpunit                
PHPUnit 12.5.30 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.4.21
Configuration: /Users/samsonasik/www/boundwize/pyrameter/phpunit.xml

............................................................      60 / 60 (100%)
Pyrameter
=========

Shape: Healthy Pyramid
Result: Passed โœ“

                  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
                  โ”‚ E2E โœ“ โ”‚
            โ•ญโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ•ฎ
            โ”‚   Integration โœ“   โ”‚
       โ•ญโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ•ฎ
       โ”‚        Functional โœ“         โ”‚
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                  Unit โœ“                   โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Kind          Tests   Actual   Target      Status
Unit             37    78.7%   >= 60.0%     โœ“
Functional        6    12.8%   <= 20.0%     โœ“
Integration       4     8.5%   <= 16.0%     โœ“
E2E               0     0.0%   <=  2.0%     โœ“

Total: 47 tests

Your test pyramid target passed.


Time: 00:00.412, Memory: 26.00 MB

OK (60 tests, 145 assertions)

What's Changed

  • Drop type: Unknown, fallback to Unit instead and show pyramid visualization report by @samsonasik in #11

Full Changelog: 0.1.2...0.2.0