gotestyourself / gotestyourself/gotestsum

Option for a non-zero exit status for a failed unknown test

Open
#205 1 comment 3 reactions 0 assignees View on GitHub
test2json-bug
Dominant language
Go
Stars
2.7k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

I recently ran into the issue described here: https://github.com/gotestyourself/gotestsum/issues/141
Basically, test2json couldn't parse a test result (because I used fmt.Printf() without a linebreak), which caused gotestsum to report the test as `failed (unknown)`.

This seems perfectly fine behavior, but I'd really like the tests to fail if a test returns a `failed (unknown)` status, so we can improve the code. Currently however gotestsum still exists with exit code 0 if this occurs.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the linked gotestsum issue 141 and tracing where gotestsum determines its exit status after reporting a failed (unknown) test. The work is done when an option makes that status return a non-zero exit code while preserving the current behavior by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.