Skip to main content

pytest plugin for generating test cases by yaml

Project description

pytest-yml

pytest plugin for generating test cases by yaml

Install

pip install pytest-yaml-sanmu

Config

[pytest]
run_yaml_case = 1

Usage

(venv) D:\git\github\dongfangtianyu\pytest-yaml-sanmu>pytest
======================================= test session starts =======================================
platform win32 -- Python 3.10.5, pytest-7.2.1, pluggy-1.0.0
rootdir: D:u\git\github\dongfangtianyu\pytest-yaml-sanm, configfile: pytest.ini
plugins: allure-pytest-2.13.0, result-log-1.0.1, yaml-0.2.1.dev
collected 27 items

tests\e2e\test_allure.yaml .                                                                  [  3%]
tests\e2e\test_marks_by_user.yaml .                                                           [  7%]
tests\e2e\test_marks_have_no_parameters.yaml sX                                               [ 14%]
tests\e2e\test_marks_have_parameters.yaml ss.X.                                               [ 33%]
tests\e2e\test_marks_parametrize.yaml ...............                                         [ 88%]
tests\e2e\test_marks_usefixtures.yaml .x                                                      [ 92%]
tests\e2e\test_simple.yaml .                                                                  [ 100%]
============================21 passed, 3 skipped, 1 xfailed, 2 xpassed in 0.20s ====================

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytest_yaml_sanmu-0.2.6-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page