Skip to content

Commit fa7f632

Browse files
committed
updated
1 parent 2702020 commit fa7f632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_posts/2016-03-05-codeception-2.2.-upcoming-features.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ So their usage in Codeception was useless, especially if you were executing test
2222

2323
Codeception takes the exact `@depends` annotation, reorders tests so dependent tests always will executed after the tests they rely on. This will work for Cest and Test formats both. And you can actually declare dependencies for tests in other files. Be sure, they will be taken, executed in the right order, and if a test fails its dependencies will be skipped. This is likely improve acceptance testing. If login test doesn't pass, you shouldn't even try to launch all other tests with authorization required.
2424

25-
Here is the annotation format to use to declare dependencies. It should be {fullClassName}:{testName}
25+
Here is the annotation format to use to declare dependencies. It should be {fullClassName}:{testName} or {testName} for the test in the same class.
2626

2727
```
28+
@depends login
2829
@depends UserCest:login
2930
@depends App\Service\UserTest:create
3031
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy