nick8325 / nick8325/quickcheck

Pretty-show-ing the counterexample.

Open
#328 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haskell
Stars
790
Forks
130
Avg merge
16h 41m
Merged PRs (30d)
2

Description

As part of my work on https://github.com/NorfairKing/sydtest, I'd like to ppShow the generated counterexample.
The failingTestCase seems to have hard-coded show. Is there any way around this?
Is there any chance you might expose the failing test case as a Show box instead of a string?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining Test.QuickCheck.Result and the failingTestCase field, focusing on the hard-coded show mentioned in the issue. Determine whether the failing test case can be exposed as a Show value for ppShow, and define completion around supporting the requested counterexample formatting without breaking existing result rendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.