Skip to content

Commit

Permalink
test(unit) annotate slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Mar 12, 2024
1 parent 64abe36 commit 6be1431
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/Command/DbExportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\Console\Output\BufferedOutput;
use \UnitTester;

/**
* @group slow
*/
class DbExportTest extends \Codeception\Test\Unit
{
use TmpFilesCleanup;
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/Command/DbImportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\BufferedOutput;

/**
* @group slow
*/
class DbImportTest extends \Codeception\Test\Unit
{
use TmpFilesCleanup;
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/Events/Module/WPCLITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use stdClass;
use tad\Codeception\SnapshotAssertions\SnapshotAssertions;

/**
* @group slow
*/
class WPCLITest extends Unit
{
use SnapshotAssertions;
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/Events/Module/WPLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
use const ABSPATH;
use const WP_DEBUG;

/**
* @group slow
*/
class WPLoaderTest extends Unit
{
use SnapshotAssertions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use lucatume\WPBrowser\Command\GenerateWPXMLRPC;
use lucatume\WPBrowser\Utils\Filesystem as FS;

/**
* @group slow
*/
class GenerationCommandsTest extends Unit
{
private static string $suite = 'wploadersuite';
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/Project/PluginProjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\Console\Output\NullOutput;
use tad\Codeception\SnapshotAssertions\SnapshotAssertions;

/**
* @group slow
*/
class PluginProjectTest extends Unit
{
use TmpFilesCleanup;
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/Project/ThemeProjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use Symfony\Component\Console\Output\NullOutput;
use tad\Codeception\SnapshotAssertions\SnapshotAssertions;

/**
* @group slow
*/
class ThemeProjectTest extends Unit
{
use TmpFilesCleanup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use lucatume\WPBrowser\WordPress\WPConfigFile;
use PDO;

/**
* @group slow
*/
class MysqlDatabaseTest extends Unit
{
use UopzFunctions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use lucatume\WPBrowser\WordPress\Installation;
use lucatume\WPBrowser\WordPress\InstallationException;

/**
* @group slow
*/
class ConfiguredTest extends Unit
{
use UopzFunctions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use lucatume\WPBrowser\WordPress\Database\MysqlDatabase;
use lucatume\WPBrowser\WordPress\InstallationException;

/**
* @group slow
*/
class EmptyDirTest extends Unit
{
use UopzFunctions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
use lucatume\WPBrowser\WordPress\Installation;
use lucatume\WPBrowser\WordPress\InstallationException;

/**
* @group slow
*/
class MultisiteTest extends Unit
{
use UopzFunctions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use lucatume\WPBrowser\WordPress\InstallationException;
use tad\Codeception\SnapshotAssertions\SnapshotAssertions;

/**
* @group slow
*/
class ScaffoldedTest extends Unit
{
use SnapshotAssertions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use lucatume\WPBrowser\WordPress\Installation;
use lucatume\WPBrowser\WordPress\InstallationException;

/**
* @group slow
*/
class SingleTest extends Unit
{
use UopzFunctions;
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/WordPress/InstallationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
use lucatume\WPBrowser\WordPress\InstallationState\Single;
use RuntimeException;

/**
* @group slow
*/
class InstallationTest extends Unit
{
use UopzFunctions;
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/lucatume/WPBrowser/WordPress/LoadSandboxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use lucatume\WPBrowser\WordPress\LoadSandbox;
use PHPUnit\Framework\Assert;

/**
* @group slow
*/
class LoadSandboxTest extends Unit
{
use LoopIsolation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use lucatume\WPBrowser\WordPress\Database\SQLiteDatabase;
use tad\Codeception\SnapshotAssertions\SnapshotAssertions;

/**
* @group slow
*/
class WpConfigFileGeneratorTest extends Unit
{
use UopzFunctions;
Expand Down

0 comments on commit 6be1431

Please sign in to comment.