Closed
Bug 704046
Opened 15 years ago
Closed 15 years ago
move mozprocess tests to mozbase repo under mozprocess
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Unassigned)
References
Details
(Whiteboard: [mozbase][good first bug][mentor=jhammel])
Attachments
(1 file)
|
73.26 KB,
patch
|
ahal
:
review+
|
Details | Diff | Splinter Review |
mozprocess1.py and mozprocess2.py should be made executable calling
unittest.main() for running and be moved to a tests/ directory under
https://github.com/mozilla/mozbase/tree/master/mozprocess
| Reporter | ||
Updated•15 years ago
|
Whiteboard: [mozbase]
| Reporter | ||
Updated•15 years ago
|
Whiteboard: [mozbase] → [mozbase][good first bug][mentor=jhammel]
| Reporter | ||
Comment 1•15 years ago
|
||
The makefile and proclaunch.c should also be moved as well as the iniparser directory
| Reporter | ||
Comment 2•15 years ago
|
||
Attachment #575983 -
Flags: review?(ahalberstadt)
Comment 3•15 years ago
|
||
Comment on attachment 575983 [details] [diff] [review]
move the tests and add a unittest.main() call if __main__
Review of attachment 575983 [details] [diff] [review]:
-----------------------------------------------------------------
I'm assuming all you changed were the __main__ lines. If so, r+ with conditions:
1) Please add licenses to the files that we wrote (i.e mozprocess*.py and proclaunch.c), see http://www.mozilla.org/MPL/boilerplate-1.1/. The initial developer should be 'The Mozilla Foundation'.
2) Are we leaving these tests in the mozmill repo as well? Cause I'm not entirely sure how useful they are when run outside of mutt. I think it would be nice to at least add some documentation explaining how to run the tests as well as what to expect from the output (when I run proclaunch, all I see is a bunch of 'Launching child process' statements and there is no indication of pass or fail).
Attachment #575983 -
Flags: review?(ahalberstadt) → review+
| Reporter | ||
Comment 4•15 years ago
|
||
1. Will do. We should probably document this for the mozbase repo
2. No, we're not. I will remove them from there once they are landed here.
I'm not sure what you mean about their usefulness outside of mutt. They are standard unittests. We can certainly remove the output, and unittest should not FAIL (vs OK) at the end of the run if they fail and exit with 1, iirc
| Reporter | ||
Comment 5•15 years ago
|
||
I will also add proclaunch to the .gitignore file
| Reporter | ||
Comment 6•15 years ago
|
||
:ahal, what all files should be licensed?
| Reporter | ||
Comment 7•15 years ago
|
||
I am probably not going to finish this any time soon because of the licensing issue, but if someone wants to land, we need these tests.
| Reporter | ||
Comment 8•15 years ago
|
||
Pushed to master with licenses and other fixes: https://github.com/mozilla/mozbase/commit/32dab1880ed5eff84f5463a161a9b2d732a95119
Will next delete from the mozmill repository. Should probably post follow-ups on:
- tests for introspecting `ps`
- unified (simple) test harness to gather unittests. this currently lives in mozprofile but should be at the repo level with manifests in the various tests/ directory of each package
| Reporter | ||
Comment 9•15 years ago
|
||
removed from mozmill: https://github.com/mozautomation/mozmill/commit/0747a4c9bec128c10cf91488ac89fed79cdd026b
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•10 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•