# 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/.
import argparse import functools import logging import os import sys
from six import iteritems
from mach.decorators import Command, CommandArgument from mozbuild.base import (
MachCommandConditions as conditions,
BinaryNotFoundException,
)
@Command( "marionette-test",
category="testing",
description="Remote control protocol to Gecko, used for browser automation.",
conditions=[functools.partial(conditions.is_buildapp_in, apps=SUPPORTED_APPS)],
parser=create_parser_tests,
)
@CommandArgument( "--allow-nonlocal-connections",
dest="allow_nonlocal_connections",
action="store_true",
default=False,
help="Allow loading of websites from remote locations. Only use it for local testing!",
) def marionette_test(command_context, tests, allow_nonlocal_connections=False, **kwargs): if"test_objects"in kwargs:
tests = [] for obj in kwargs["test_objects"]:
tests.append(obj["file_relpath"]) del kwargs["test_objects"]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.