Skip to content

Commit

Permalink
[FeatureToggle] Make codecoverage stop bitching (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaEstes authored Nov 3, 2023
1 parent ffb31bc commit 54f0b60
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ coverage-event-dispatcher:
coverage-event-sourcing:
XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite event-sourcing --coverage-html $(COVERAGE_DIR)

coverage-feature-toggle:
XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite feature-toggle --coverage-html $(COVERAGE_DIR)

coverage-http-factory:
XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite http-factory --coverage-html $(COVERAGE_DIR)

Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<directory>src/SonsOfPHP/Component/EventSourcing/Tests</directory>
</testsuite>

<testsuite name="feature-toggle">
<directory>src/SonsOfPHP/Component/FeatureToggle/Tests</directory>
</testsuite>

<testsuite name="http-factory">
<directory>src/SonsOfPHP/Component/HttpFactory/Tests</directory>
</testsuite>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Context
*
* @internal
* @uses \SonsOfPHP\Component\FeatureToggle\Context
*/
final class ContextTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Feature
*
* @internal
* @uses \SonsOfPHP\Component\FeatureToggle\Context
*/
final class FeatureTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Provider\InMemoryFeatureToggleProvider
*
* @internal
* @uses \SonsOfPHP\Component\FeatureToggle\Feature
*/
final class InMemoryFeatureToggleProviderTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Toggle\AlwaysDisabledToggle
*
* @internal
* @uses \SonsOfPHP\Component\FeatureToggle\Context
*/
final class AlwaysDisabledToggleTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\FeatureToggle\Toggle\AlwaysEnabledToggle
*
* @internal
* @uses \SonsOfPHP\Component\FeatureToggle\Context
*/
final class AlwaysEnabledToggleTest extends TestCase
{
Expand Down

0 comments on commit 54f0b60

Please sign in to comment.