Mark some tests as skipped when running on gh actions

This commit is contained in:
David Bomba 2024-11-08 18:35:08 +11:00
parent a63516f926
commit 0d1ef15b7a
7 changed files with 10 additions and 6 deletions

View File

@ -30,7 +30,7 @@ class ClientModelTest extends TestCase
$this->makeTestData(); $this->makeTestData();
if (config('ninja.testvars.travis') !== false) { if (config('ninja.testvars.travis') !== false) {
$this->markTestSkipped('Skip test for Travis'); $this->markTestSkipped('Skip test for GH Actions');
} }
if (! config('ninja.testvars.stripe')) { if (! config('ninja.testvars.stripe')) {

View File

@ -48,6 +48,10 @@ class PeppolTest extends TestCase
protected function setUp(): void protected function setUp(): void
{ {
parent::setUp(); parent::setUp();
if (config('ninja.testvars.travis') !== false) {
$this->markTestSkipped('Skip test for GH Actions');
}
$this->makeTestData(); $this->makeTestData();

View File

@ -39,7 +39,7 @@ class InventoryManagementTest extends TestCase
); );
if (config('ninja.testvars.travis') !== false) { if (config('ninja.testvars.travis') !== false) {
$this->markTestSkipped('Skip test for Travis'); $this->markTestSkipped('Skip test for GH Actions');
} }
} }

View File

@ -39,7 +39,7 @@ class LiveDesignTest extends TestCase
); );
if (config('ninja.testvars.travis') !== false) { if (config('ninja.testvars.travis') !== false) {
$this->markTestSkipped('Skip test for Travis'); $this->markTestSkipped('Skip test for GH Actions');
} }
} }

View File

@ -36,7 +36,7 @@ class PreviewTest extends TestCase
); );
if (config('ninja.testvars.travis') !== false) { if (config('ninja.testvars.travis') !== false) {
$this->markTestSkipped('Skip test for Travis'); $this->markTestSkipped('Skip test for GH Actions');
} }
} }

View File

@ -35,7 +35,7 @@ class DownloadHistoricalInvoiceTest extends TestCase
$this->makeTestData(); $this->makeTestData();
if (config('ninja.testvars.travis') !== false) { if (config('ninja.testvars.travis') !== false) {
$this->markTestSkipped('Skip test for Travis'); $this->markTestSkipped('Skip test for GH Actions');
} }
} }

View File

@ -26,7 +26,7 @@ class PdfGenerationTest extends TestCase
parent::setUp(); parent::setUp();
if (config('ninja.testvars.travis') !== false) { if (config('ninja.testvars.travis') !== false) {
$this->markTestSkipped('Skip test for Travis'); $this->markTestSkipped('Skip test for GH Actions');
} }
} }