Skip to content

Commit

Permalink
add integration and regression groups to phpunit test tags and add co…
Browse files Browse the repository at this point in the history
…mposer shortcut to execute if needed
  • Loading branch information
mudhoney committed Nov 20, 2024
1 parent b1fc63d commit eacf216
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion tests/unit_tests/regression/SentryIssue1Test.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php declare(strict_types=1);

/**
* @author Kasim Necdet Percinel <[email protected]>
*/
Expand All @@ -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();
Expand Down

0 comments on commit eacf216

Please sign in to comment.