Closed
Bug 1056804
Opened 11 years ago
Closed 7 years ago
runner-service : Make passing reporter not obscure terrible thing
Categories
(Testing Graveyard :: JSMarionette, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: zcampbell, Assigned: zcampbell)
References
Details
(Whiteboard: [runner])
The runner-service is passing in "mocha-socket-reporter" but this causes pretty output to be hidden and makes it difficult to debug test failures.
If we change the default reporter to 'spec' but also allow the reporter to be overridden by a variable then we'll have nicer output.
NB:
lightsofapollo> zac: So change your bug to "Make passing reporter not obscure terrible thing"
Comment 2•11 years ago
|
||
Doing this is fine, especially for devs running locally.. but I just wanted to explain what my intentions had been.
The goal of the mocha-socket-reporter was to use structured logging like we are starting to do with the rest of our harnesses. This means it just logs json, which we can then format with formatters (e.g builtin mozlog formatters [1] or our own custom formatters) however we see fit. We can even stream different formats to different files (e.g upload the raw json logs, and print pretty-formatted ones to stdout).
So it would be possible to create our own formatter that mimics the 'spec' reporter look, while still maintaining access to the raw structured logs (and the benefits that come with it). Obviously writing a new formatter is more work than just switching the reporter to 'spec', so there is a strong argument for going that route. Just be aware that if we do that, we won't be using structured logs anymore.
[1] http://mozbase.readthedocs.org/en/latest/mozlog_structured.html#formatters
Comment 3•11 years ago
|
||
Side note: The format that the runner-service currently prints was just a placeholder that I was intending to replace at a later date.
| Assignee | ||
Comment 4•11 years ago
|
||
Ahal, that makes sense, I understand CI's requirement.
I can just flip it around the other way and keep the current default but allow it to be overridden by the arg, so in the meantime I can debug failures locally.
Comment 5•11 years ago
|
||
That also makes sense, glad we're on the same page!
Comment 6•11 years ago
|
||
>Ahal, that makes sense, I understand CI's requirement.
>I can just flip it around the other way and keep the current default but allow it to be overridden by the >arg, so in the meantime I can debug failures locally.
I don't really have strong opinions on what the reporter does but the defaults should be designed for humans... We can easily configure CI.
Updated•11 years ago
|
Whiteboard: [runner]
Comment 7•7 years ago
|
||
Bulk closed as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1422750
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
Updated•7 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•