tests(mimetreeparser): Tests that are have no depdenency against MessageViewer should move to MimeTreeParser.

Authored by knauss on Mon, Sep 9, 8:32 PM.


Diff Detail

R94 PIM: Message Library
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
knauss created this revision.Mon, Sep 9, 8:32 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMon, Sep 9, 8:32 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
knauss requested review of this revision.Mon, Sep 9, 8:32 PM
dvratil requested changes to this revision.Tue, Sep 10, 7:43 AM
dvratil added inline comments.

Why not move this as well? It does not seem to use anything that is not in the moved tests. Where/how do you draw the line? :)

This revision now requires changes to proceed.Tue, Sep 10, 7:43 AM
romangg added a subscriber: romangg.EditedTue, Sep 10, 8:48 AM

Thanks for trying out the unified git commit message guideline. :)

Some small notes about the message header: The type should be just test without the s. The subject itself should be start in lower case without period in the end and in imperative, present tense. By that it can also be condensed in size and additional information put into the message:

test(mimetreeparser): move several tests to MimeTreeParser

Tests that have no dependency against MessageViewer should be moved to
MimeTreeParser. That's simply a move of tests to the right place.

More information at https://github.com/angular/angular/blob/3cf2005a93/CONTRIBUTING.md#-commit-message-guidelines

knauss added inline comments.Tue, Sep 10, 9:25 AM

The line is the tests that need rendering and not only the parsing. That is seen, if the output of testWriter is used see line 58/59:


it is even more obvious with D23807, where we explicitly trigger the rendering step. As you see all reminding tests, trigger rendering. And the rendering is part of MessageViewer, so we can't move those tests to MimeTreeParser.

dvratil accepted this revision.Tue, Sep 10, 1:03 PM

I see. Please adjust the commit message as Roman suggested and ship it.

This revision is now accepted and ready to land.Tue, Sep 10, 1:03 PM
This revision was automatically updated to reflect the committed changes.

I see. Please adjust the commit message as Roman suggested and ship it.

argh I forgotten to update the commit message, sorry for that.