allure-framework / allure-framework/allure-python
Add dynamic.label and dynamic.title support to allure-behave
- 主要语言
- Python
- 星标
- 814
- 派生
- 260
- PR 合并指标
- 30 天内没有已合并 PR
描述
#### I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.
#### What is the current behavior?
#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Currently, there is no way to set a test's name or add a label dynamically. The following code has no effect:
```python
@given("...")
def step_impl():
allure.dynamic.title("New name")
allure.dynamic.label("tag", "my-tag")
```
#### What is the expected behavior?
The code above should change the test's name to `"New name"` and add the `my-tag` tag to the test.
#### What is the motivation / use case for changing the behavior?
To make the runtime API complete.
#### Please tell us about your environment:
- Allure adaptor: allure-behave@2.13.2
贡献指南
调研方向
从所示 step definition 使用的 runtime API 的 allure-behave 实现开始。复现该代码片段,并追踪 dynamic.title 和 dynamic.label 为什么没有效果。完成的标准是测试名称为“New name”,且 my-tag 标签出现在生成的 Allure 结果中。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100