Skip to content

Commit

Permalink
Merge pull request #159 from alexandre-daubois/upgrade-behat
Browse files Browse the repository at this point in the history
Upgrade Behat and use PHP config
  • Loading branch information
asgrim authored Dec 23, 2024
2 parents 40c3f43 + 15bb2df commit e213e44
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 34 deletions.
20 changes: 20 additions & 0 deletions behat.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

use Behat\Config\Config;
use Behat\Config\Filter\TagFilter;
use Behat\Config\Profile;
use Behat\Config\Suite;
use Php\PieBehaviourTest\CliContext;

$profile = (new Profile('default'))
->withSuite(
(new Suite('default'))
->withContexts(CliContext::class)
->withPaths('%paths.base%/features')
->withFilter(new TagFilter('~@wip')),
);

return (new Config())
->withProfile($profile);
10 changes: 0 additions & 10 deletions behat.yml.dist

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"webmozart/assert": "^1.11"
},
"require-dev": {
"behat/behat": "^3.16",
"behat/behat": "^3.17",
"doctrine/coding-standard": "^12.0",
"php-standard-library/psalm-plugin": "^2.3",
"phpunit/phpunit": "^10.5.39",
Expand Down
50 changes: 27 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e213e44

Please sign in to comment.