cucumber / cucumber/react-components

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

Open
#125 2 comments 0 reactions 0 assignees View on GitHub
:bug: bug
Dominant language
TypeScript
Stars
38
Forks
13
Avg merge
16h 2m
Merged PRs (30d)
7

Description

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](https://user-images.githubusercontent.com/6946919/118145685-23e9d180-b40e-11eb-8d8e-46fe1116f590.png)

`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}}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.