From eacf2162c7d4dafbac89b19030d3ff5d118db81d Mon Sep 17 00:00:00 2001 From: Kasim Necdet Percinel Date: Wed, 20 Nov 2024 16:27:37 +0000 Subject: [PATCH] add integration and regression groups to phpunit test tags and add composer shortcut to execute if needed --- composer.json | 1 + tests/unit_tests/regression/SentryIssue1Test.php | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9a9ac07a..060f572e 100644 --- a/composer.json +++ b/composer.json @@ -2,6 +2,7 @@ "scripts": { "test-python": "cd install && venv/bin/python -m pytest", "test": "vendor/bin/phpunit --bootstrap tests/autoload.php --fail-on-warning --testdox tests/unit_tests", + "test-integration": "vendor/bin/phpunit --bootstrap tests/autoload.php --fail-on-warning --testdox tests/unit_tests --group integration", "local-test": "vendor/bin/phpunit --bootstrap tests/autoload.php --stop-on-failure --testdox --fail-on-warning tests/unit_tests", "run-test": "vendor/bin/phpunit --bootstrap tests/autoload.php --stop-on-failure --testdox --fail-on-warning tests/unit_tests --filter ", "make-test-config": "management/ci/make_test_config.sh settings/Config.ini settings/Private.php", diff --git a/tests/unit_tests/regression/SentryIssue1Test.php b/tests/unit_tests/regression/SentryIssue1Test.php index 761909eb..00d1980a 100644 --- a/tests/unit_tests/regression/SentryIssue1Test.php +++ b/tests/unit_tests/regression/SentryIssue1Test.php @@ -1,4 +1,5 @@ */ @@ -8,7 +9,11 @@ final class SentryIssue1Test extends TestCase { - public function testItShouldDumpProperResponseCodeAndPhaseIfThereIsNoAction(): void + /** + * @group regression + * @group integration + **/ + public function testItShouldDumpProperResponseCodeAndReasonPhraseIfThereIsNoActionGiven(): void { //Create a Guzzle client $client = new Client();