Skip to main content

What's New in Vedro v1.9

· 3 min read

Greetings to all Vedro users. Today we are introducing Vedro v1.9, an update aimed at improving your testing experiences. This new version notably focuses on two primary improvements: the simplification of plugin management and the enhancement of reporting capabilities. Let's now examine this update in detail.

Simplifying Plugin Management

This update introduces a new command, that simplifies the process of managing plugins.

$ vedro plugin install vedro-valera-validator

This command not only installs the plugin, but also enables it in your vedro.cfg.py file:

import vedro_valera_validator
import vedro

class Config(vedro.Config):

class Plugins(vedro.Config.Plugins):

class ValeraValidator(vedro_valera_validator.ValeraValidator):
enabled = True

To provide more insights into the plugin ecosystem, we've added another command:

$ vedro plugin top

This command shows you the most popular Vedro plugins:

┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
Package Description URL Popularity
┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
vedro-gitlab-reporter GitLab reporter with pypi.org/project/vedro-gitlab-reporter 2728
collapsable sections
vedro-allure-reporter Allure reporter pypi.org/project/vedro-allure-reporter 2646
vedro-valera-validator Validator pypi.org/project/vedro-valera-validator 2038
vedro-interactive Interactive mode pypi.org/project/vedro-interactive 733
vedro-advanced-tags Vedro tags with boolean logic pypi.org/project/vedro-advanced-tags 356
└────────────────────────┴────────────────────────────────┴─────────────────────────────────────────┴────────────┘

Enhancing the Reporting Experience

We've made improvements to the reporting experience in this release. The RichReporter now displays execution time in a more user-friendly format:

Scenarios
*
✔ register new user

# 1 scenario, 1 passed, 0 failed, 0 skipped (5m 3s)

We also introduce a new parameter, show_steps, which displays steps even when the scenario is successful:

class RichReporter(vedro.plugins.director.rich.RichReporter):
show_steps = True

With show_steps enabled, your reports will be more detailed:

Scenarios
*
✔ register new user
✔ given_creds
✔ when_guest_registers
✔ then_it_should_return_success_response
✔ and_it_should_return_user_info

# 1 scenario, 1 passed, 0 failed, 0 skipped (0.70s)

Introducing Parameterized Scenario Decorators

Last but certainly not least, Vedro v1.9 brings the advantage of Relaxed Grammar Restrictions On Decorators, allowing you to skip individual parameterized scenarios:

import vedro
from vedro import params, skip

class Scenario(vedro.Scenario):
subject = "login as {user}"

@params("Bob")
@params[skip]("Alice")
def __init__(self, user):
self.user = user

In this example, the scenario for the user "Alice" will be skipped, while the scenario for "Bob" will be executed.


That's all for the updates in this release! We hope these new features and improvements will make your testing experience even better.

tip

For the latest news and updates, subscribe to our Telegram or Twitter