【发布时间】:2017-09-05 14:55:33
【问题描述】:
使用: ru.yandex.qatools.allure:allure-junit-adaptor 1.5.0
想要对带有 lambda 表达式的字段使用 @Step 注释:
@Step("Assert screens")
protected AssertScreenshotsInterface compareScreenshots = () -> assertThat(compareImages(getEtalonScreenshotPath(), getCurrentScreenshotPath(),
getDifferentScreenshotPath())).isTrue();
ide 显示提示:“@Step 不适用于字段”。我在每个测试中都使用它的功能,如何在魅力报告中支持 lambda?
【问题讨论】:
标签: allure