input-output-hk / input-output-hk/ImpSpec

Add a command line flag that prints logged messages even if the test succeeds

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Sometimes it's useful to print out the logs even if a test succeeds for debugging purposes. It would be useful to have a flag that can be passed as a command line argument to `cabal test` that forces all of the `logDoc` messages to always be printed.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how `cabal test` arguments reach the test runner and where `logDoc` messages are currently emitted or suppressed. Add a command-line flag that enables those messages for successful tests, then verify that normal output remains unchanged without the flag and that successful tests print their logs when it is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
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.