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)