更新日志¶
版本历史¶
v2.1.0.dev (2025-1-12)¶
feat: new configuration
xlsx_remove_none_by_blank_field, if true, automatically remove empty values from blank fields.chore: Supports Python 3.13
chore: Supports Pytest 8.4
v2.0.0 (2024-8-7)¶
chore: update gh action
docs: add changelog in readme
v2.0.0.dev1 (2024-8-6)¶
deps: update pytest~=8.2.2 ,python>=3.12,<3.13
fix: item_locals not injected variables
chore: adjust try_json log level
v2.0.0.dev0 (2024-07-20)¶
WIP: enter 2.0 development, reference pytest-yaml v1.0
feat: support pytest for all mark (e.g.
usefixture、parametrize、skip)feat: new configuration
xlsx_run_case,only enabled when it is true for the pluginfeat: new configuration
xlsx_global_variable_paths,load variables from YAML or JSON filesfeat: support variable syntax
${var_name},variables can be used from fixtures, parameterize, filesfeat: function
pytest_xlsx.add_globalscan be used to add new variables to the use casefeat: the parameterized data can be a YAML or JSON file
v1.0.36.1 (2024-05-13)¶
Customization: compatible with Python 3.6
v1.0.1 (2024-01-28)¶
deps: update pytest<=8.1
v1.0.0 (2024-01-28)¶
break: remove fixture
xlsx_runnerfeat: ignore rows with no content in excel
chore: use new gh action approach to publish to pypi
chore: update gh action
chore: remove pytest-html
v0.5.2 (2023-07-03)¶
deps: update pytest>=7.4.0 ,pydantic>=2
test: supplement test case dependency files
chore: pdm check
v0.5.1 (2023-03-01)¶
feat: automatically complete table headers in excel when applying table format, retaining key for empty values to facilitate user usage
fix: setup-level error prompts cannot print
v0.5.0 (2023-02-27)¶
feat: abandon the method of executing xlsxitem through fixture(
xlsx_runner), use hook (pytest_xlsx_run_step) method insteadfeat: compatible with old fixture usage and provide deprecation warnings
feat: support
mark.usefixturesin .xlsx filesfeat: output code position and exception content after table when test case fails
test: supplement conftest cases
v0.4.0 (2023-02-09)¶
feat: define new hook: pytest_xlsx_execute_step
feat: add sub-plugin CallRunner, compatible with original xlsx_runner usage
feat: add sub-plugin Allure, support dynamic marking with allure
fix: do not execute sub-plugin Allure when step is not marked
test: add test_allure.xlsx
chore: pytest-result-log records test case execution logs
v0.3.1 (2022-12-13)¶
feat: modify Runner execution method to display xlsx errors in table format
feat: remove fields with
Nonevalues from setp, set key=_BlankFieldfor empty fields in excelfeat: roughly bottom-level code, support parametrize and mark, incompatible with previous versions
fix:
-vvparameter displays py pathfix:
_BlankFielfield may not be a listtest: update cases to pass tests
chore: update dependencies
v0.2.0 (2022-11-06)¶
feat: provide friendly error prompts and log records when excel format does not meet requirements
docs: add readme
v0.1.5 (2022-10-31)¶
feat : automatically add numbers to test case names to avoid overwriting of same-named cases
feat : plugin adds configuration option to support custom table structures
test: update test cases to pass tests
fix: remove a strange line break in logs
fix: no log recorded when excel format is incorrect
chore: flake8 ignore e203
chore: rename
hooks.pytoplugin.py
v0.1.3 (2022-08-04)¶
feat: compatible with pytest-html plugin
fix: AssertionError
chore: modify class name to resolve pytest warnings
v0.1.2 (2022-07-08)¶
feat: compatible with pytest plugins: allure, xdist
feat: create runner base class, xlsx_runner fixture should return instance object of Runner subclass
v0.1.0 (2022-06-25)¶
feat: Recognized .xlsx files as pytest test cases