Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 780 Bytes

VDR101.md

File metadata and controls

31 lines (23 loc) · 780 Bytes

VDR101. Decorator @vedro.only should not be presented

Decorator @vedro.only is used to tell the Vedro framework to run only the decorated scenario and ignore the others. In order not to ignore other scenarios in CI, this decorator is allowed to be used only in dev environment

# scenarios/example/register_user.py
import vedro

@vedro.only
class Scenario(vedro.Scenario):
    subject = "register new user"


# scenarios/example/login_user.py
import vedro

class Scenario(vedro.Scenario):
    subject = "login registered user"

Only one scenarios with decorator will be executed:

$ vedro run
Scenarios
* example
 ✔ register new user (1.02s)

Additional links