Closed
Bug 487391
Opened 16 years ago
Closed 16 years ago
Allow possibility for alternate shutdown methods, e.g. clean quit of application
Categories
(Testing Graveyard :: Mozmill, defect, P1)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: standard8, Assigned: standard8)
References
Details
(Whiteboard: [mozmill-1.2])
Attachments
(1 file)
1.01 KB,
patch
|
Details | Diff | Splinter Review |
When a test finished, the MozMill CLI class just calls to the runner and tells it to stop, killing the application.
This isn't very useful when we want to run leak tests alongside UI testing - e.g. if I run this set of tests, does it leak?
Given we haven't really got a generic shutdown method, I'm proposing that we provide a new function 'stop_runner' in the MozMill class, and have the CLI class call to that.
We can then sub-class MozMill and override that function to provide more complex shutdown functions.
Proposed fix attached, I've tested this locally on my Thunderbird tests and it seems to be working fine.
Assignee | ||
Comment 1•16 years ago
|
||
This is P1 for Thunderbird - we really need it for running mozmill in bloat tests which is one of our main priorities at the moment (so we can start expanding them).
Also, we're likely to spin our own test controllers (depending on if the restart test structure does what we need), and if we do we want to be able to cleanly shutdown so that we can do further leak tests on specific test runs.
The good news is that I've already proposed a patch for this...
Priority: -- → P1
Updated•16 years ago
|
Whiteboard: [mozmill-1.2]
Comment 2•16 years ago
|
||
We had already added some code to the mozmill restart tests to shut down cleanly using the quit menu.
I've generalized that code a bit better and now when running tests we default to "cleanQuit".
Fixed in r439
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•