Skip to content

Commit

Permalink
speed up tests & split by type
Browse files Browse the repository at this point in the history
Co-authored-by: @SRWieZ
  • Loading branch information
gwleuverink committed Jan 17, 2025
1 parent 1256e4a commit 63c8394
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions tests/BootingTest.php → tests/Feature/BootingTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

use PHPUnit\Framework\ExpectationFailedException;

use Illuminate\Support\Facades\Artisan;
use function Orchestra\Testbench\remote;
use PHPUnit\Framework\ExpectationFailedException;

it('can boot up the app', function () {
Artisan::call('native:install', ['--force' => true, '--no-interaction' => true]);

$output = '';

$process = remote('native:serve --no-dependencies --no-interaction -v');
Expand Down
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use Native\Electron\Tests\TestCase;
use Symfony\Component\Filesystem\Filesystem;

uses(TestCase::class)->in(__DIR__);
uses(TestCase::class)->in('Feature', 'Unit');

function testsDir(string $path = ''): string
{
Expand Down
3 changes: 0 additions & 3 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Native\Electron\Tests;

use Illuminate\Support\Facades\Artisan;
use Orchestra\Testbench\Attributes\WithConfig;
use Orchestra\Testbench\Concerns\WithWorkbench;
use Orchestra\Testbench\TestCase as Orchestra;
Expand All @@ -15,7 +14,5 @@ class TestCase extends Orchestra
protected function setUp(): void
{
parent::setUp();

Artisan::call('native:install', ['--force' => true, '--no-interaction' => true]);
}
}
File renamed without changes.
File renamed without changes.

0 comments on commit 63c8394

Please sign in to comment.