更新日志

版本历史

v1.1.1.dev(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 exception

  • fix: Remove steps_can_use_vars of configuration

  • chore: Display the default values of ini configuration in help

  • deprecated: Renamed run_yaml_case as yaml_run_case of 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 mark

  • fix: Provided try_call function to output undefined when a function is not defined, suppressing errors

  • fix: Provided str filter to convert any variable to a string format compatible with YAML

v0.4.0 (2024-05-04)

  • break: Renamed test_name -> name in yaml file.

  • feat: Allowed saving local variables for items and automatically injecting them into item.current_step. Local variables are cleared before each item execution

  • feat: Used Jinja2 for variable and function loading

  • fix: Fixed self.usefixtures not working

  • chore: 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.parametrize and mark.usefixture natively, supporting fixture parameterization

  • feat: Compiled to binary files

  • fix: Fixed JSONSchema errors

  • fix: Fixed type errors

  • chore: Updated YAML case schema

  • chore: Locked pytest dependency to ~ =8.1.1

  • chore: Set requires-python = ">=3.12"

v0.2.6 (2024-04-07)

  • feat: Made schema importable as a property

  • feat: Validated YAML against case file requirements using jsonschema

  • chore: Considering removal of Pydantic in the future and providing more detailed error messages

  • fix: Fixed error in schema.yaml

  • chore: Locked pyyaml-include to ~ =1.3.1

  • chore: 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 of cwd #1

  • feat: Import yaml_funcs only upon instantiation to allow reuse by other modules

v0.2.3 (2023-07-03)

  • feat: Plugin is disabled by default; must be enabled via ini configuration

  • feat: Used YAML as the plugin name

  • feat: Display YAML in pytest_report_header instead of yaml-sanmu

  • fix: yaml.dump should not alter content order

  • deps: pydantic>=2.0

v0.2.0 (2023-03-10)

  • feat: Support for user-defined marks

  • feat: Support for pytest marks without parameters

  • feat: Support for pytest marks with parameters (positional only)

  • feat: Support for mark.parametrize

  • feat: Support for mark.usefixtures

  • feat: 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