-
Notifications
You must be signed in to change notification settings - Fork 3
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
Timing tests #44
Comments
Do you want time being printed for a property or, say, min/max/av of each test in each property? Or do you want to measure time just once? In this case, you can run |
Detailed timing hadn't occured to me, but that would be cool. I imagine per property or group would be ideal, since I'm really interested in the timing for specific parts of my code, not the whole lot. Thanks for the tip re |
I guess I could contribute this function myself. Would |
it would require adding IO to the runner. Is that a good idea? |
No, it's not. Everything is abstracted in the runner to be able to run Hedgehog in different environment, to test Hedgehog by Hedgehog in particular. So, every functionality is moved to a separate interface, like it's done with I personally think there is no need to invent your own interface for this, since there is a library with such interface already: https://github.com/buzden/idris2-time-for-sleep/blob/master/src/System/Time.idr#L151 |
this is more complicated than I expected. I don't have the head space for something non-trivial, sorry |
but yes I see the pattern and how your lib fits that pattern |
I'd like to time my tests, but the
test
function exits the program so I can't stick aSystem.time
before and after itThe text was updated successfully, but these errors were encountered: