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

Đang mở
#125 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề với cấu hình RunCucumberTest được hiển thị, sau đó kiểm tra target/results.html và target/results.ndjson khi không có scenario nào được thực thi. Truy vết cách HTML formatter xử lý lần chạy rỗng; hoàn tất khi trang được render mà không có thông báo “No match found for: undefined”.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

: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}}}
Ngôn ngữ chính
TypeScript
Star
39
Fork
13
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cucumber/react-components

Tất cả issue của cucumber/react-components

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.