Skip to content

Commit

Permalink
skip panther and mercure tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed Jan 25, 2024
1 parent f268fb0 commit a190fbc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
env:
PHPUNIT_FLAGS: "-v"
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
MAKER_SKIP_MERCURE_TEST: true
MAKER_SKIP_PANTHER_TEST: true

jobs:
tests:
Expand Down
5 changes: 5 additions & 0 deletions tests/Maker/MakeFunctionalTestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ protected function getMakerClass(): string
public function getTestDetails()
{
yield 'it_generates_test_with_panther' => [$this->createMakerTest()
->preRun(function () {
if ($_SERVER['MAKER_SKIP_PANTHER_TEST'] ?? false) {
$this->markTestSkipped('Panther test skipped - MAKER_SKIP_PANTHER_TEST set to TRUE.');
}
})
/* @legacy Allows Panther >= 1.x to be installed. (PHP <8.0 support) */
->skipOnSymfony7() // legacy remove when panther supports Symfony 7
->addExtraDependencies('panther:*')
Expand Down
5 changes: 5 additions & 0 deletions tests/Maker/MakeTestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public function getTestDetails(): \Generator
];

yield 'it_makes_PantherTestCase_type' => [$this->createMakerTest()
->preRun(function () {
if ($_SERVER['MAKER_SKIP_PANTHER_TEST'] ?? false) {
$this->markTestSkipped('Panther test skipped - MAKER_SKIP_PANTHER_TEST set to TRUE.');
}
})
->skipOnSymfony7() // legacy remove when panther supports Symfony 7
/* @legacy Allows Panther >= 1.x to be installed. (PHP <8.0 support) */
->addExtraDependencies('panther:*')
Expand Down

0 comments on commit a190fbc

Please sign in to comment.