
- disable forked execution (by default) - accept string as test path - raise FileNotFoundError when test case files are not found - create a new test result instance when any is given - raise RunTestCasesFailed after test case errors or failures - use 'spawn' context to create workers pool Change-Id: Ifde3d43d023e7508ca099bee0a9e9bab0c639789
31 lines
1018 B
Python
31 lines
1018 B
Python
# Copyright (c) 2021 Red Hat, Inc.
|
|
#
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
from __future__ import absolute_import
|
|
|
|
from tobiko.run import _discover
|
|
from tobiko.run import _find
|
|
from tobiko.run import _run
|
|
|
|
|
|
discover_test_ids = _discover.discover_test_ids
|
|
find_test_ids = _discover.find_test_ids
|
|
forked_discover_test_ids = _discover.forked_discover_test_ids
|
|
|
|
find_test_files = _find.find_test_files
|
|
|
|
run_tests = _run.run_tests
|
|
run_test_ids = _run.run_test_ids
|