Skip to content

Commit

Permalink
Enable debug mode before run suite to be possible execute develop com…
Browse files Browse the repository at this point in the history
…mand

Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Sep 27, 2023
1 parent 9584f26 commit 38ce33b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\Testwork\Hook\Scope\BeforeSuiteScope;
use Libresign\NextcloudBehat\NextcloudApiContext;
use PHPUnit\Framework\Assert;
use rpkamp\Behat\MailhogExtension\Context\OpenedEmailStorageAwareContext;
Expand All @@ -15,6 +16,14 @@ class FeatureContext extends NextcloudApiContext implements OpenedEmailStorageAw
private array $file = [];
private OpenedEmailStorage $openedEmailStorage;

/**
* @BeforeSuite
*/
public static function beforeSuite(BeforeSuiteScope $scope)
{
exec('php ../../../../occ system:set debug 1', $output);
}

/**
* @BeforeFeature
*/
Expand Down

0 comments on commit 38ce33b

Please sign in to comment.