cucumber / cucumber/godog

Implement HTML formatter

Open
#339 1 comment 0 reactions 0 assignees View on GitHub
:zap: enhancement
Dominant language
Go
Stars
2.7k
Forks
280
Avg merge
2d 20h
Merged PRs (30d)
2

Description

Cucumber-JVM and Cucumber-Ruby now implement a `html` formatter based on the [standard html formatter](https://github.com/cucumber/cucumber/tree/master/html-formatter).

The implementations are here:

Java:

* [MessagesToHtmlWriter.java](https://github.com/cucumber/cucumber/blob/master/html-formatter/java/src/main/java/io/cucumber/htmlformatter/MessagesToHtmlWriter.java) (library)
* [HtmlFormatter.java](https://github.com/cucumber/cucumber-jvm/blob/main/core/src/main/java/io/cucumber/core/plugin/HtmlFormatter.java) (Cucumber-JVM formatter)

Ruby:

* [html_formatter.rb](https://github.com/cucumber/cucumber/blob/master/html-formatter/ruby/lib/cucumber/html_formatter.rb) (library)
* [html.rb](https://github.com/cucumber/cucumber-ruby/blob/master/lib/cucumber/formatter/html.rb) (Cucumber-Ruby formatter)

TypeScript:
* [CucumberHtmlStream.ts](https://github.com/cucumber/cucumber/blob/master/html-formatter/javascript/src/CucumberHtmlStream.ts)
* Not yet integrated into Cucumber-js

It would be great to port the library to Go (in the monorepo) and then use it from within godog!

Contributor guide

Open the contributing guide

Research direction

Use the referenced MessagesToHtmlWriter.java, HtmlFormatter.java, html_formatter.rb, html.rb, and CucumberHtmlStream.ts implementations as behavioral references. First inspect the godog repository's formatter entry points, then port the library to Go and integrate it with godog; done means godog can use the HTML formatter.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.