html-formatter/java: No match found for: "undefined"

未关闭
#125 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
frontend

调研方向

先使用所示的 RunCucumberTest 配置重现问题,然后在没有执行任何场景时检查 target/results.html 和 target/results.ndjson。跟踪 HTML formatter 如何处理空运行;完成标准是页面渲染时不显示“No match found for: undefined”消息。

由索引模型根据 Issue 内容生成。

描述

:bug: bug

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:
image

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cucumber/react-components 的其他 Issue

查看 cucumber/react-components 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。