Closed
Bug 760418
Opened 13 years ago
Closed 12 years ago
Reorganize and fix broken Mutt JavaScript tests
Categories
(Testing Graveyard :: Mozmill, defect)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file)
The current list of JS tests is a mess and need refactoring and clean-up. I will work on that to get a state where I can continue to implement new features without introducing new regressions.
What I will do is:
* put tests under sub folders for modules
* fix broken tests (or file bugs for regressions)
* use local test pages instead of hitting the net
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 1•12 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•12 years ago
|
Attachment #630191 -
Attachment description: Pointer to Github pull request: https://github.com/mozautomation/mozmill/pull/38/files → Patch v1
Attachment #630191 -
Flags: review?(jhammel)
Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 630191 [details]
Patch v1
So this is tested and passes on OS X. Please test this patch on Linux (Jeff) and Windows (Clint).
There were some tests in our suite which are obsolete, covered by other tests already, or access chrome parts which should not be in this suite but covered by our mozmill tests for Firefox.
Attachment #630191 -
Flags: review?(ctalbert)
Comment 3•12 years ago
|
||
Comment on attachment 630191 [details]
Patch v1
Awesome work, Henrik! If these pass now, it looks good to me.
FWIW, if you have
"""
[DEFAULT]
type = javascript
[include:somefile.ini]
"""
somefile.ini should inherit 'type = javascript'. (If this doesn't work, it is a bug.) OTOH, there is no harm in specifying/overriding in the include-d file
Attachment #630191 -
Flags: review?(jhammel) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Jeff Hammel [:jhammel] from comment #3)
> [DEFAULT]
> type = javascript
>
> [include:somefile.ini]
>
> somefile.ini should inherit 'type = javascript'. (If this doesn't work, it
> is a bug.) OTOH, there is no harm in specifying/overriding in the include-d
> file
It works but I decided to leave this in so you can run a manifest of the sub folder directly. Otherwise you would have to comment out all included in the main tests.ini or add the default section to the appropriate tests.ini file.
I hope that's ok. I will now do a final test on Windows and Linux and check-in the changes if all pass.
Clint, I would still be happy to get an additional review. Just to be sure if you could spot any failure on my side.
Assignee | ||
Comment 5•12 years ago
|
||
On Windows there seems to be a major issue with process handling on the Python side for the restart tests. I will file this as a separate bug. Otherwise it looks good.
Landed as:
https://github.com/mozautomation/mozmill/commit/931efcab0c4885f96a405b92825149390982bafa
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•12 years ago
|
||
Sorry, had to push a follow-up for an accidental left-over from my screenshot patch on another bug.
https://github.com/mozautomation/mozmill/commit/1c8cd7a181ff5062f5767cfff783aecaee41cb70
Assignee | ||
Updated•12 years ago
|
Comment 7•12 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #4)
> (In reply to Jeff Hammel [:jhammel] from comment #3)
>
> > [DEFAULT]
> > type = javascript
> >
> > [include:somefile.ini]
> >
> > somefile.ini should inherit 'type = javascript'. (If this doesn't work, it
> > is a bug.) OTOH, there is no harm in specifying/overriding in the include-d
> > file
>
> It works but I decided to leave this in so you can run a manifest of the sub
> folder directly. Otherwise you would have to comment out all included in the
> main tests.ini or add the default section to the appropriate tests.ini file.
>
> I hope that's ok.
Yep, that's a completely valid point.
Assignee | ||
Comment 8•12 years ago
|
||
One more accident. My bad. When I revert the feature in screenshot I also have to revert the test:
https://github.com/mozautomation/mozmill/commit/2d8896b06f4d321c61ef17df9b4fb4c9866ef753
Attachment #630191 -
Flags: review?(ctalbert)
Updated•8 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•