Skip to content

Comments

Remove duplicate printing from Alcotest backend#405

Merged
jmid merged 2 commits intoc-cube:mainfrom
ptrichr:main
Feb 17, 2026
Merged

Remove duplicate printing from Alcotest backend#405
jmid merged 2 commits intoc-cube:mainfrom
ptrichr:main

Conversation

@ptrichr
Copy link
Contributor

@ptrichr ptrichr commented Feb 10, 2026

Hi, I noticed that when using the Alcotest backend for QCheck, there is duplicated output pretty printer output on test failures - one set from Alcotest and one set from QCheck.

I believe a similar issue is mentioned in #103. I think I have corrected this issue in this PR, however, I would love a maintainer to sanity check me, as I'm not incredibly familiar with the QCheck codebase.

Thanks!

removes duplicate pretty printing and stack traces from erroneous output when using the
Alcotest backend for QCheck.
Copy link
Collaborator

@jmid jmid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this makes sense to me 👍

Triggering a CI run I see this failing expect tests, because "double printing" is missing - effectively giving the example test I was going to ask about.

Can you update and commit the updated expect tests so that dune runtest example/alcotest passes locally?

Also, a CHANGELOG entry would be welcome!

add CHANGELOG entry for removing duplicate printing
update expected output for Alcotest examples to reflect removal of duplicated printing
@ptrichr
Copy link
Contributor Author

ptrichr commented Feb 16, 2026

Removed the duplicated output from expected. Additionally, locally, it's also complaining about the size of the boxes (though it didn't do that in the previous CI run), so I'm going to see if that changed as well.

Copy link
Collaborator

@jmid jmid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution! 🙏

@jmid jmid merged commit a07ca25 into c-cube:main Feb 17, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants