更新日志¶
版本历史¶
v1.1.3(2025-09-16)¶
fix: Fixed when other mark are used together with parametsize, the other mark will be lost
v1.1.2(2025-08-30)¶
fix: Fixed when the first step initialization fails, it is a crash
chore: Supports Python 3.14
v1.1.1(2025-01-01)¶
fix: Fixed compatibility with pytest-order
chore: Supports Python 3.13
chore: Supports Pytest 8.4
v1.1.0(2024-11-20)¶
feat: Only display the content of the current step when failed
v1.0.2(2024-08-16)¶
feat:
global_variable_paths_ignore_if_non_existent=TrueIgnore class without exceptionfix: Remove
steps_can_use_varsof configurationchore: Display the default values of ini configuration in help
deprecated: Renamed
run_yaml_caseasyaml_run_caseof configuration(will be break in the v1.2.0)docs: add article url
v1.0.0 (2024-07-20)¶
feat: Added a configuration to ignore errors when the variable file does not exist
chore: Updated GitHub Actions
v0.5.0 (2024-07-07)¶
feat: Support for defining local variables in YAML
feat: Support for defining global variables in YAML and Python
feat: Added four configuration items to specify global variable files
feat: Support for using Jinja2 in
markfix: Provided
try_callfunction to outputundefinedwhen a function is not defined, suppressing errorsfix: Provided
strfilter to convert any variable to a string format compatible with YAML
v0.4.0 (2024-05-04)¶
break: Renamed
test_name->namein yaml file.feat: Allowed saving local variables for items and automatically injecting them into
item.current_step. Local variables are cleared before each item executionfeat: Used Jinja2 for variable and function loading
fix: Fixed
self.usefixturesnot workingchore: Cleaned files before and after compilation
docs: Added usage examples (
pytest.ini,conftest.py,test_abc.yaml)
v0.3.0 (2024-04-20)¶
feat: Implemented
mark.parametrizeandmark.usefixturenatively, supporting fixture parameterizationfeat: Compiled to binary files
fix: Fixed JSONSchema errors
fix: Fixed type errors
chore: Updated YAML case schema
chore: Locked
pytestdependency to~ =8.1.1chore: Set
requires-python = ">=3.12"
v0.2.6 (2024-04-07)¶
feat: Made
schemaimportable as a propertyfeat: Validated YAML against case file requirements using
jsonschemachore: Considering removal of Pydantic in the future and providing more detailed error messages
fix: Fixed error in
schema.yamlchore: Locked
pyyaml-includeto~ =1.3.1chore: Used OIDC for publishing to PyPI
chore: Updated GitHub Actions version
v0.2.4 (2023-11-29)¶
feat: YAML files support
!include, searching from the current file directory instead ofcwd#1feat: Import
yaml_funcsonly upon instantiation to allow reuse by other modules
v0.2.3 (2023-07-03)¶
feat: Plugin is disabled by default; must be enabled via
iniconfigurationfeat: Used YAML as the plugin name
feat: Display YAML in
pytest_report_headerinstead ofyaml-sanmufix:
yaml.dumpshould not alter content orderdeps:
pydantic>=2.0
v0.2.0 (2023-03-10)¶
feat: Support for user-defined marks
feat: Support for
pytestmarks without parametersfeat: Support for
pytestmarks with parameters (positional only)feat: Support for
mark.parametrizefeat: Support for
mark.usefixturesfeat: Built-in templates, supporting function calls
feat: Explicitly display YAML content when a test case fails
feat: Ability to mark steps with Allure
chore: Published to PyPI via GitHub Actions
v0.1.0 (2023-02-08)¶
feat: Recognized YAML files as pytest test cases