hedgehogqa / hedgehogqa/haskell-hedgehog

Open a file in a Property

Open
#175 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Haskell
Stars
698
Forks
110
PR merge metrics
No merged PRs in 30d

Description

Is there a way to open a file as a part of a property check? I'm write a parser library, and one behavior I need to test is the a source string is parsed the same regardless of how it is chunked. I would like to load the file into memory once and then rechunk it on each run of the test. I cannot see how to do this. If I do IO in `Property`, I think the `IO` will be repeated every time.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the Property API and its handling of IO, focusing on the issue's concern that IO may repeat for every property check. No repository file or test is named; done means establishing a supported way to load a file once and reuse rechunked input across runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.