Skip to content

Commit 081ce4c

Browse files
committed
mention combined attributes
1 parent 67b3739 commit 081ce4c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

guides/07-AdvancedUsage.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,18 @@ class UserCest
498498

499499
This way you can easily control which tests will be executed for each environment.
500500

501+
It is possible to combine environments. For instance, if a test should be executed only in chrome on staging, this can be declared as a combined environment:
502+
503+
```php
504+
#[Env('chrome,staging')]
505+
```
506+
507+
Test marked with this attribute will be executed only if both environments are set:
508+
509+
```php
510+
php vendor/bin/codecept run --env chrome,staging
511+
```
512+
501513
## Get Test Metadata
502514

503515
Sometimes you may need to change the test behavior in real time.

0 commit comments

Comments
 (0)