Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#12364 closed (fixed)

CTRL-C could be caught by the TestRunner to display any failures found so far

Reported by: Randy Barlow Owned by: Karen Tracey
Component: Testing framework Version: dev
Severity: Keywords: CTRL-C interrupt signal
Cc: randallpbarlow@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Similar to #11613, it would be very cool if the Django test runner would intercept CTRL-C. If I had been running the unit tests for ~40 minutes or so, and I forgot to put --verbosity or --failfast, it would be cool if I could type CTRL-C to get the test runner to give me all the failures to date. This might not be straightforward, but it would be a nice to have.

Attachments (1)

ticket_12364.patch (3.1 KB ) - added by Randy Barlow 15 years ago.
This patch adds the ability to quit on a second keyboard interrupt.

Download all attachments as: .zip

Change History (8)

comment:1 by Randy Barlow, 15 years ago

Cc: Randy Barlow added
Owner: changed from nobody to Randy Barlow
Status: newassigned
Triage Stage: UnreviewedAccepted

comment:2 by Randy Barlow, 15 years ago

Needs documentation: set
Patch needs improvement: set

I attached a ghetto patch. It's ghetto because I made it by hand. It also depends on the patch from #11613 being applied. Documentation still required, and on its way!

by Randy Barlow, 15 years ago

Attachment: ticket_12364.patch added

This patch adds the ability to quit on a second keyboard interrupt.

comment:3 by Randy Barlow, 15 years ago

Has patch: set
Keywords: CTRL-C interrupt signal added
Needs documentation: unset
Owner: changed from Randy Barlow to Karen Tracey
Patch needs improvement: unset
Status: assignednew
Triage Stage: AcceptedReady for checkin

Hey Karen! This one I think is ready to be checked in. We can now do wicked cool things in the test suite when stuff is broked.

comment:4 by Randy Barlow, 15 years ago

Version: 1.1SVN

comment:5 by Randy Barlow, 15 years ago

Cc: randallpbarlow@… added; Randy Barlow removed

comment:6 by Karen Tracey, 15 years ago

Resolution: fixed
Status: newclosed

(In [12034]) Fixed #12364: Added graceful exit from a test run when Ctrl-C is pressed. Thanks Randy Barlow.

comment:7 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top