author James Graham <james@hoppipolla.co.uk>
Tue, 09 Oct 2018 11:43:48 +0100
changeset 495970 eab20dd50c4cddfdbb531139a5cbf7654361666e
parent 495969 073c574eccc040d44bd1a3ac6354cbe9e47f63ea
permissions -rw-r--r--
Bug 1275926 - Upstream grouping mozlog formatter from Servo, r=ahal This is designed to produce minimal output; just show which tests are running and then provide details at the end for tests that gave an unexpected result.

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

from .unittest import UnittestFormatter
from .xunit import XUnitFormatter
from .html import HTMLFormatter
from .machformatter import MachFormatter
from .tbplformatter import TbplFormatter
from .errorsummary import ErrorSummaryFormatter
from .grouping import GroupingFormatter

    import ujson as json
except ImportError:
    import json

def JSONFormatter():
    return lambda x: json.dumps(x) + "\n"

__all__ = ['UnittestFormatter', 'XUnitFormatter', 'HTMLFormatter',
           'MachFormatter', 'TbplFormatter', 'ErrorSummaryFormatter',
           'JSONFormatter', 'GroupingFormatter']