-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathbehat.php
More file actions
39 lines (30 loc) 路 1.1 KB
/
Copy pathbehat.php
File metadata and controls
39 lines (30 loc) 路 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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;
if (getenv('USING_PIE_BEHAT_DOCKERFILE') !== '1') {
echo <<<'HELP'
鈿狅笍 鈿狅笍 鈿狅笍 STOP! 鈿狅笍 鈿狅笍 鈿狅笍
This test suite tinkers with your system, and has lots of expectations about
the system it is running on, so we HIGHLY recommend you run it using the
provided Dockerfile:
docker buildx build --file .github/actions/pie-behaviour-tests/Dockerfile -t pie-behat-test .
docker run --volume .:/github/workspace -ti pie-behat-test
If you are really sure, and accept that the test suite installs/uninstalls
stuff from your system, and might break your stuff, set
USING_PIE_BEHAT_DOCKERFILE=1 in your environment.
HELP;
exit(1);
}
$profile = (new Profile('default'))
->withSuite(
(new Suite('default'))
->withContexts(CliContext::class)
->withPaths('%paths.base%/features')
->withFilter(new TagFilter('~@wip')),
);
return (new Config())
->withProfile($profile);