html-formatter/java: No match found for: "undefined"
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- java, react, typescript
- 领域
- frontend
调研方向
先使用所示的 RunCucumberTest 配置重现问题,然后在没有执行任何场景时检查 target/results.html 和 target/results.ndjson。跟踪 HTML formatter 如何处理空运行;完成标准是页面渲染时不显示“No match found for: undefined”消息。
由索引模型根据 Issue 内容生成。
描述
When Cucumber did not execute any scenarios the io.cucumber:html-formatter:13.0.0 will display the message: No match found for: "undefined".
To reproduce:
package io.cucumber.examples.calculator;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(tags = "@no-such-tag", plugin = {
"html:target/results.html",
"message:target/results.ndjson"
})
public class RunCucumberTest {
}
target/results.html:

target/results.ndjson:
{"meta":{"protocolVersion":"15.0.0","implementation":{"name":"cucumber-jvm","version":"${parent.version}"},"runtime":{"name":"OpenJDK 64-Bit Server VM","version":"11.0.11+9-Ubuntu-0ubuntu2.20.04"},"os":{"name":"Linux"},"cpu":{"name":"amd64"}}}
{"testRunStarted":{"timestamp":{"seconds":"1620918593","nanos":632453000}}}
{"source":{"uri":"classpath:io/cucumber/examples/calculator/basic_arithmetic.feature","data":"@foo\nFeature: Basic Arithmetic\n\n Background: A Calculator\n Given a calculator I just turned on\n","mediaType":"text/x.cucumber.gherkin+plain"}}
{"gherkinDocument":{"uri":"classpath:io/cucumber/examples/calculator/basic_arithmetic.feature","feature":{"location":{"line":2,"column":1},"tags":[{"location":{"line":1,"column":1},"name":"@foo","id":"5f302c14-f235-4657-a9cf-a4d5a2d90771"}],"language":"en","keyword":"Feature","name":"Basic Arithmetic","children":[{"background":{"location":{"line":4,"column":3},"keyword":"Background","name":"A Calculator","steps":[{"location":{"line":5,"column":5},"keyword":"Given ","text":"a calculator I just turned on","id":"5abd1c65-c068-4479-ba0c-c3324a52bf4e"}],"id":"48e0b2c8-6339-485c-a4f2-51ef107de253"}}]}}}
{"testRunFinished":{"success":true,"timestamp":{"seconds":"1620918593","nanos":653527000}}}
- 主要语言
- TypeScript
- 星标
- 39
- 派生
- 13
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cucumber/react-components 的其他 Issue
-
:zap: enhancement
难度 4/5 3-5 天 新手友好度 35/100
cucumber/react-components#428 · 4 条评论 ·
-
Anchor links don't select the targeted test on load可能重新可做 @davidjgoss 于 298 天前认领,目前没有进行中的 PR。 未关闭:bug: bug
cucumber/react-components#422 · 已指派 1 人 ·
-
Add more information about hook可能重新可做 @davidjgoss 于 297 天前认领,目前没有进行中的 PR。 未关闭
cucumber/react-components#496 · 11 条评论 · 1 个 reaction · 已指派 1 人 ·
-
难度 4/5 3-5 天 新手友好度 15/100
cucumber/react-components#409 ·
-
:zap: enhancement
难度 2/5 1-3 小时 新手友好度 55/100
cucumber/react-components#395 · 3 条评论 ·
查看 cucumber/react-components 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
frontend testing
难度 2/5 1-3 小时 新手友好度 84/100
vendrabuck/HERD#1588 ·
维护者通常 1 天内回复
-
documentation good first issue priority: low
难度 1/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
art-audio
难度 2/5 1-3 小时 新手友好度 72/100