cucumber / cucumber/common

Show TestRunFinished.exception consistently in formatters

Open
#2,281 0 comments 0 reactions 0 assignees View on GitHub
:zap: enhancement
Dominant language
No language data
Stars
3.4k
Forks
679
PR merge metrics
No merged PRs in 30d

Description

### 🤔 What's the problem you're trying to solve?

Should a test run fail with some exception unrelated to the test execution itself that exception is kept in `TestRunFinished.exception`. This exception should be provided and presented by various Cucumber formatter implementations.

### ✨ What's your proposed solution?

Most formatters only represent scenarios, but we can create a "synthetic" scenario to represent this failure.

### ⛏ Have you considered any alternatives or workarounds?

_No response_

### 📚 Any additional context?

Projects:

- [x] compatibility-kit https://github.com/cucumber/compatibility-kit/pull/178
- [ ] formatters
- [ ] junit-xml
- [ ] testng-xml
- [ ] pretty
- [ ] html
- [ ] cucumber-json
- [ ] teamcity

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.