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

Support graceful termination via CTRL+C #86

Open
moodmosaic opened this issue Jan 9, 2025 · 0 comments
Open

Support graceful termination via CTRL+C #86

moodmosaic opened this issue Jan 9, 2025 · 0 comments

Comments

@moodmosaic
Copy link
Member

Currently CTRL+C doesn't cleanly terminate test sessions. Should:

  • Stop any running test immediately
  • Print results of completed tests
  • Show partial coverage data if available
  • Clean up any temporary state

Example:

Starting invariant testing type for the counter contract...

₿        1 Ӿ        9   wallet_4        counter decrement 
₿        1 Ӿ        9   wallet_4 [PASS] counter invariant-counter-gt-zero 
₿      835 Ӿ      845   wallet_7        counter add 6
₿      835 Ӿ      845   wallet_1 [PASS] counter invariant-counter-gt-zero 
^C
Terminating...
Tests:      4 passed, 2 discarded, 94 skipped
Time:       1.24s
Coverage:   7.5%

This requires #85 as prerequisite.

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

No branches or pull requests

1 participant