Skip to content

Commit 393821c

Browse files
committed
move config and run e2e as own process
1 parent e1944e2 commit 393821c

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

tests/End2End/App/config.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,6 @@ services:
3636
Sentry\SentryBundle\Tests\End2End\App\Command\MainCommand:
3737
tags: [{ name: 'console.command', command: 'main-command' }]
3838

39-
Sentry\SentryBundle\Tests\End2End\App\Command\LoggingCommand:
40-
autowire: true
41-
tags: [ { name: 'console.command', command: 'log:test' } ]
42-
43-
Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand.nosub:
44-
autowire: true
45-
class: Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand
46-
arguments:
47-
$subcommand: null
48-
tags: [ { name: 'console.command', command: 'log:nosub' } ]
49-
50-
Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand.sub:
51-
autowire: true
52-
class: Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand
53-
arguments:
54-
$subcommand: 'log:test'
55-
tags: [ { name: 'console.command', command: 'log:sub' } ]
56-
5739
monolog:
5840
handlers:
5941
main:

tests/End2End/App/logging.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,21 @@ services:
1717
autowire: true
1818
tags:
1919
- { name: controller.service_arguments }
20+
21+
Sentry\SentryBundle\Tests\End2End\App\Command\LoggingCommand:
22+
autowire: true
23+
tags: [ { name: 'console.command', command: 'log:test' } ]
24+
25+
Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand.nosub:
26+
autowire: true
27+
class: Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand
28+
arguments:
29+
$subcommand: null
30+
tags: [ { name: 'console.command', command: 'log:nosub' } ]
31+
32+
Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand.sub:
33+
autowire: true
34+
class: Sentry\SentryBundle\Tests\End2End\App\Command\CrashCommand
35+
arguments:
36+
$subcommand: 'log:test'
37+
tags: [ { name: 'console.command', command: 'log:sub' } ]

tests/End2End/LoggingCommandTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Symfony\Component\Console\Input\ArgvInput;
1313
use Symfony\Component\Console\Output\NullOutput;
1414

15+
/**
16+
* @runTestsInSeparateProcesses
17+
*/
1518
class LoggingCommandTest extends WebTestCase
1619
{
1720
/**

tests/End2End/LoggingEnd2EndTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Sentry\SentryBundle\Tests\End2End\App\KernelWithLogging;
99
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1010

11+
/**
12+
* @runTestsInSeparateProcesses
13+
*/
1114
class LoggingEnd2EndTest extends WebTestCase
1215
{
1316
protected static function getKernelClass(): string

0 commit comments

Comments
 (0)