Skip to content

Commit

Permalink
[EventSourcing] Update codecoverage to stop the bitching (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaEstes authored Nov 3, 2023
1 parent e08baf9 commit ffb31bc
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 14 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ coverage-clock:
coverage-event-dispatcher:
XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite event-dispatcher --coverage-html $(COVERAGE_DIR)

coverage-event-sourcing:
XDEBUG_MODE=coverage $(PHP) -dxdebug.mode=coverage $(PHPUNIT) --testsuite event-sourcing --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 @@ -26,6 +26,10 @@
<directory>src/SonsOfPHP/Component/EventDispatcher/Tests</directory>
</testsuite>

<testsuite name="event-sourcing">
<directory>src/SonsOfPHP/Component/EventSourcing/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 @@ -13,7 +13,9 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregate
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregate
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
*/
final class AbstractAggregateTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
*/
final class AggregateIdTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
*/
final class AggregateVersionTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ class Msg extends AbstractMessage {}
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Aggregate\Repository\AggregateRepository
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\Repository\AggregateRepository
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\MessageEnricher
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregate
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
* @uses \SonsOfPHP\Component\EventSourcing\Message\Repository\InMemoryMessageRepository
* @uses \SonsOfPHP\Component\EventSourcing\Message\AbstractMessage
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\Provider\NullMessageEnricherProvider
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessageMetadata
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessagePayload
*/
final class AggregateRepositoryTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ class Msg extends AbstractMessage {}
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\AbstractMessage
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Message\AbstractMessage
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessageMetadata
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessagePayload
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
*/
final class AbstractMessageTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\AbstractSerializableMessage
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Message\AbstractMessage
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessageMetadata
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessagePayload
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
*/
final class AbstractSerializableMessageTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\Enricher\MessageEnricher
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\MessageEnricher
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\Provider\NullMessageEnricherProvider
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\Handler\NullMessageEnricherHandler
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\Provider\AllMessageEnricherProvider
*/
final class MessageEnricherTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\MessageMetadata
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
*/
final class MessageMetadataTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\NamespaceMessageProvider
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Message\NamespaceMessageProvider
* @uses \SonsOfPHP\Component\EventSourcing\Message\AbstractMessage
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessageMetadata
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessagePayload
*/
final class NamespaceMessageProviderTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\Repository\InMemoryMessageRepository
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
* @uses \SonsOfPHP\Component\EventSourcing\Message\Repository\InMemoryMessageRepository
*/
final class InMemoryMessageRepositoryTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\Serializer\MessageSerializer
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Message\AbstractMessage
* @uses \SonsOfPHP\Component\EventSourcing\Message\AbstractSerializableMessage
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\Handler\EventTypeMessageEnricherHandler
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\MessageEnricher
* @uses \SonsOfPHP\Component\EventSourcing\Message\Enricher\Provider\AllMessageEnricherProvider
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessageMetadata
* @uses \SonsOfPHP\Component\EventSourcing\Message\MessagePayload
* @uses \SonsOfPHP\Component\EventSourcing\Message\Serializer\MessageSerializer
* @uses \SonsOfPHP\Component\EventSourcing\Message\Upcaster\MessageUpcaster
* @uses \SonsOfPHP\Component\EventSourcing\Message\Upcaster\Provider\NullMessageUpcasterProvider
*/
final class MessageSerializerTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Message\Upcaster\MessageUpcaster
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Message\Upcaster\MessageUpcaster
* @uses \SonsOfPHP\Component\EventSourcing\Message\Upcaster\Provider\NullMessageUpcasterProvider
* @uses \SonsOfPHP\Component\EventSourcing\Message\Upcaster\Handler\NullUpcasterHandler
* @uses \SonsOfPHP\Component\EventSourcing\Message\Upcaster\Provider\EventTypeMessageUpcasterProvider
*/
final class MessageUpcasterTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Snapshot\Repository\InMemorySnapshotRepository
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
* @uses \SonsOfPHP\Component\EventSourcing\Snapshot\Snapshot
*/
final class InMemorySnapshotRepositoryTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
/**
* @coversDefaultClass \SonsOfPHP\Component\EventSourcing\Snapshot\Snapshot
*
* @internal
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AbstractAggregateId
* @uses \SonsOfPHP\Component\EventSourcing\Aggregate\AggregateVersion
*/
final class SnapshotTest extends TestCase
{
Expand Down

0 comments on commit ffb31bc

Please sign in to comment.