Closed Bug 760418 Opened 12 years ago Closed 12 years ago

Reorganize and fix broken Mutt JavaScript tests

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

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
Blocks: 760720
Depends on: 761107
Depends on: 760410, 760699
Blocks: 677364
Blocks: 761603
Blocks: 761605
Blocks: 761608
Blocks: 761653
Attached file Patch v1
Pointer to Github pull-request
Attachment #630191 - Attachment description: Pointer to Github pull request: https://github.com/mozautomation/mozmill/pull/38/files → Patch v1
Attachment #630191 - Flags: review?(jhammel)
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 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+
(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.
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
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
Blocks: 760410, 760699
No longer depends on: 760410, 760699
(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.
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)
Blocks: 767286
Blocks: 662294
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: