Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TestWatchdog, Tripwire #66

Merged
merged 3 commits into from
May 3, 2024
Merged

Add TestWatchdog, Tripwire #66

merged 3 commits into from
May 3, 2024

Conversation

carbolymer
Copy link
Contributor

@carbolymer carbolymer commented Apr 25, 2024

This PR adds a TestWatchdog and Tripwire and their test. A sample tripwire check output looks like this:

         86 ┃   -- make sure that we didn't trigger the tripwire
         87 ┃   H.assertNotTripped childTripwire
            ┃   │ Tripwire 2 has been tripped at: CallStack (from HasCallStack):
            ┃   │   tripTripwire, called at test/Hedgehog/Extras/Test/TestWatchdogSpec.hs:84:5 in main:Hedgehog.Extras.Test.TestWatchdogSpec
            ┃   │   testCase, called at src/Hedgehog/Extras/Test/TestWatchdog.hs:124:66 in hedgehog-extras-0.6.2.0-inplace:Hedgehog.Extras.Test.TestWatchdog
            ┃   │   testCase, called at src/Hedgehog/Extras/Test/TestWatchdog.hs:116:11 in hedgehog-extras-0.6.2.0-inplace:Hedgehog.Extras.Test.TestWatchdog
            ┃   │   runWithWatchdog, called at src/Hedgehog/Extras/Test/TestWatchdog.hs:124:36 in hedgehog-extras-0.6.2.0-inplace:Hedgehog.Extras.Test.TestWatchdog
            ┃   │   runWithWatchdog_, called at test/Hedgehog/Extras/Test/TestWatchdogSpec.hs:66:31 in main:Hedgehog.Extras.Test.TestWatchdogSpec
            ┃   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         88 ┃   H.assertNotTripped grandChildTripwire1
         89 ┃   H.assertNotTripped grandChildTripwire2

@carbolymer carbolymer force-pushed the mgalazyn/feature/watchdog branch from 5c4be79 to 74a0639 Compare April 26, 2024 14:19
@newhoggy newhoggy merged commit e435869 into main May 3, 2024
13 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