Files
mongo/buildscripts/resmokelib/testing/summary.py
Max Hirschhorn 424314f65e SERVER-1424 Rewrite smoke.py.
Split out the passthrough tests into separate suites. The MongoDB
deployment is started up by resmoke.py so that we can record the
success/failure of each individual test in MCI.

Added support for parallel execution of tests by dispatching to
multiple MongoDB deployments.

Added support for grouping different kinds of tests (e.g. C++ unit
tests, dbtests, and jstests) so that they can be run together. This
allows for customizability in specifying what tests to execute when
changes are made to a particular part of the code.
2015-05-08 14:49:42 -04:00

23 lines
567 B
Python

"""
Holder for summary information about a test group or suite.
"""
from __future__ import absolute_import
import collections
Summary = collections.namedtuple("Summary", ["num_run", "time_taken", "num_succeeded",
"num_skipped", "num_failed", "num_errored"])
def combine(summary1, summary2):
"""
Returns a summary representing the sum of 'summary1' and 'summary2'.
"""
args = []
for i in xrange(len(Summary._fields)):
args.append(summary1[i] + summary2[i])
return Summary._make(args)