Skip to content

Commit

Permalink
Tests: fixes + CI
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 2, 2024
1 parent 213868f commit 4f91c1a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 21 deletions.
9 changes: 6 additions & 3 deletions Makefile
Expand Up @@ -23,12 +23,15 @@ phpstan:

.PHONY: tests
tests:
vendor/bin/codecept run
vendor/bin/codecept build
vendor/bin/codecept run --debug

.PHONY: coverage
coverage:
ifdef GITHUB_ACTION
vendor/bin/codecept run --coverage --coverage-xml
vendor/bin/codecept build
vendor/bin/codecept run --coverage-xml
else
vendor/bin/codecept run --coverage --coverage-html
vendor/bin/codecept build
vendor/bin/codecept run --coverage-html
endif
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -16,7 +16,7 @@
"codeception/codeception": "^5.0.13",
"codeception/module-asserts": "^3.0.0",
"codeception/module-phpbrowser": "^3.0.1",
"codeception/phpunit-wrapper": "^9.0.9",
"phpunit/php-code-coverage": "^10.1.11",
"doctrine/annotations": "^1.14.3",
"doctrine/dbal": "^3.7.2",
"imagine/imagine": "^1.3.5",
Expand Down
13 changes: 0 additions & 13 deletions tests/acceptance.suite.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/unit/ImageTest.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Unit;
namespace Tests\Unit;

use Codeception\Test\Unit;
use Contributte\Imagist\Entity\Image;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/NetteDITest.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Unit;
namespace Tests\Unit;

use Codeception\Test\Unit;
use Contributte\Imagist\Bridge\Nette\DI\ImageStorageExtension;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/PersistentImageTest.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Unit;
namespace Tests\Unit;

use Codeception\Test\Unit;
use Contributte\Imagist\Entity\PersistentImage;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ScopeTest.php
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Contributte\Imagist\Testing\Unit;
namespace Tests\Unit;

use Codeception\Test\Unit;
use Contributte\Imagist\Exceptions\InvalidArgumentException;
Expand Down

0 comments on commit 4f91c1a

Please sign in to comment.