diff --git a/.github/workflows/run-tests-pcov-pull.yml b/.github/workflows/run-tests-pcov-pull.yml index 0fa82ceb9..b22ea41a9 100644 --- a/.github/workflows/run-tests-pcov-pull.yml +++ b/.github/workflows/run-tests-pcov-pull.yml @@ -88,7 +88,7 @@ jobs: run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run Unit Tests - run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Unit Test Suite" --cache-directory=".phpunit.cache/code-coverage" --strict-coverage --coverage-clover ./coverage.xml + run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Unit and Visuals Test Suite" --cache-directory=".phpunit.cache/code-coverage" --strict-coverage --coverage-clover ./coverage.xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v5 diff --git a/.github/workflows/run-tests-pull.yml b/.github/workflows/run-tests-pull.yml index 3d81e3b8c..1ea6334be 100644 --- a/.github/workflows/run-tests-pull.yml +++ b/.github/workflows/run-tests-pull.yml @@ -11,10 +11,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: false - max-parallel: 3 + max-parallel: 2 matrix: os: [ubuntu-latest] - php: [8.1, 8.2, 8.3, 8.4] + php: [8.2, 8.3, 8.4] laravel: [10.*] stability: [prefer-dist] @@ -85,8 +85,10 @@ jobs: run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run Unit Tests - run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + - name: Run Visuals Tests + run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage test-laravel11: runs-on: ${{ matrix.os }} @@ -166,4 +168,7 @@ jobs: run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run Unit Tests - run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + + - name: Run Visuals Tests + run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 05ff871b9..21161009c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,10 +13,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: fail-fast: false - max-parallel: 3 + max-parallel: 2 matrix: os: [ubuntu-24.04] - php: [8.1, 8.2, 8.3, 8.4] + php: [8.2, 8.3, 8.4] laravel: [10.*] stability: [prefer-dist] @@ -87,8 +87,10 @@ jobs: run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run Unit Tests - run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + - name: Run Visuals Tests + run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage test-laravel11: runs-on: ${{ matrix.os }} @@ -168,4 +170,7 @@ jobs: run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - name: Run Unit Tests - run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + run: php ./vendor/bin/paratest --testsuite "Laravel Livewire Tables Unit Test Suite" --no-coverage + + - name: Run Visuals Tests + run: php ./vendor/bin/phpunit --testsuite "Laravel Livewire Tables Visuals Test Suite" --no-coverage diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1d717c349..2156f09a7 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,9 +9,16 @@ failOnEmptyTestSuite="false" beStrictAboutOutputDuringTests="true" > + + tests/Unit + tests/Visuals + tests/Unit + + tests/Visuals + tests/Localisations/Unit diff --git a/tests/Unit/Visuals/ActionsVisualsTest.php b/tests/Visuals/ActionsVisualsTest.php similarity index 98% rename from tests/Unit/Visuals/ActionsVisualsTest.php rename to tests/Visuals/ActionsVisualsTest.php index a0150f0f2..2a0d80bf2 100644 --- a/tests/Unit/Visuals/ActionsVisualsTest.php +++ b/tests/Visuals/ActionsVisualsTest.php @@ -1,6 +1,6 @@