
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@cucumber/pretty-formatter
Advanced tools
pretty-formatter Writes a rich report of the scenario and example execution as it happens
Writes a rich report of the scenario and example execution as it happens
For usage in @cucumber/cucumber
, see https://github.com/cucumber/cucumber-js/blob/main/docs/formatters.md#pretty
attachments
- whether to include attachments (defaults to true
)featuresAndRules
- whether to include headings for Features and Rules (defaults to true
)theme
- control over the styling of various elements (see below)Here's the schema for a theme:
interface Theme {
attachment?: Style
dataTable?: {
all?: Style
border?: Style
content?: Style
}
docString?: {
all?: Style
content?: Style
delimiter?: Style
mediaType?: Style
}
feature?: {
all?: Style
keyword?: Style
name?: Style
}
location?: Style
rule?: {
all?: Style
keyword?: Style
name?: Style
}
scenario?: {
all?: Style
keyword?: Style
name?: Style
}
status?: {
all?: Partial<Record<TestStepResultStatus, Style>>
icon?: Partial<Record<TestStepResultStatus, string>>
}
step?: {
argument?: Style
keyword?: Style
text?: Style
}
tag?: Style
}
enum TestStepResultStatus {
UNKNOWN = "UNKNOWN",
PASSED = "PASSED",
SKIPPED = "SKIPPED",
PENDING = "PENDING",
UNDEFINED = "UNDEFINED",
AMBIGUOUS = "AMBIGUOUS",
FAILED = "FAILED"
}
Style
is any Node.js supported modifier or an array of them.
See the default theme for a good example. It's exported as CUCUMBER_THEME
, so you can clone and extend it if you'd like.
FAQs
pretty-formatter Writes a rich report of the scenario and example execution as it happens
The npm package @cucumber/pretty-formatter receives a total of 491,732 weekly downloads. As such, @cucumber/pretty-formatter popularity was classified as popular.
We found that @cucumber/pretty-formatter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.