Skip to content

Commit

Permalink
add group to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkulhan committed May 29, 2024
1 parent 45e995a commit 9411be2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
9 changes: 0 additions & 9 deletions data-access-kit-symfony/phpunit.xml

This file was deleted.

2 changes: 2 additions & 0 deletions data-access-kit-symfony/test/DataAccessKitBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use DataAccessKit\Symfony\Fixture\FooRepository;
use DataAccessKit\Symfony\Fixture\FooRepositoryInterface;
use DataAccessKit\Symfony\Fixture\FooService;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use Symfony\Component\Config\Loader\LoaderInterface;
Expand All @@ -18,6 +19,7 @@
use function class_exists;
use function random_bytes;

#[Group("unit")]
class DataAccessKitBundleTest extends TestCase
{

Expand Down
9 changes: 0 additions & 9 deletions data-access-kit/phpunit.xml

This file was deleted.

4 changes: 3 additions & 1 deletion data-access-kit/test/Repository/CompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
use DataAccessKit\Repository\Fixture\VariableSQLRepositoryInterface;
use DataAccessKit\Repository\Fixture\VoidSQLRepositoryInterface;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase;
use ReflectionClass;
use Spatie\Snapshots\MatchesSnapshots;
Expand All @@ -82,6 +83,7 @@
use function strrpos;
use function substr;

#[Group("unit")]
class CompilerTest extends TestCase
{

Expand All @@ -95,7 +97,7 @@ protected function setUp(): void
}

#[DataProvider("provideCompile")]
public function testCompile(string $interfaceName)
public function testCompileSuccess(string $interfaceName)
{
$this->assertMatchesSnapshot((string) $this->compiler->compile($this->compiler->prepare($interfaceName)));
}
Expand Down
4 changes: 1 addition & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
failOnNotice="true"
displayDetailsOnTestsThatTriggerNotices="true">
<testsuites>
<testsuite name="data-access-kit">
<testsuite name="test">
<directory>data-access-kit/test</directory>
</testsuite>
<testsuite name="data-access-kit-symfony">
<directory>data-access-kit-symfony/test</directory>
</testsuite>
</testsuites>
Expand Down

0 comments on commit 9411be2

Please sign in to comment.