org.scalatest.Rerunner.scala Maven / Gradle / Ivy
/*
* Copyright 2001-2013 Artima, Inc.
*
* 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.
*/
package org.scalatest
/**
* Trait whose instances can rerun tests or other entities (such as suites). An object extending
* this trait can be passed to a Reporter
as part of a Report
. The
* test or other entity about which the report is made can then be rerun by invoking the
* rerun
method on the Rerunnable
.
*
* @author Bill Venners
*/
@deprecated("We are considering removing Rerunner in ScalaTest 2.0 and would like to know if anyone is using it. If you are, please email [email protected] or and describe your use case. Thanks!")
trait Rerunner /* extends ((Reporter, Stopper, Filter, ConfigMap, Option[Distributor], Tracker, ClassLoader) => Unit) */ {
/**
* Rerun a test or other entity (such as a suite), reporting results to the specified Reporter
.
*
* @param reporter the Reporter
to which results will be reported
* @param stopper the Stopper
that will be consulted to determine whether to stop execution early.
* @param filter a Filter
with which to filter tests based on their tags
* @param configMap a Map
of key-value pairs that can be used by the suite or test being rerun
* @param distributor an optional Distributor
, into which to put nested Suite
s, if any, to be executed
* by another entity, such as concurrently by a pool of threads. If None
, nested Suite
s will be executed sequentially.
* @param loader the ClassLoader
from which to load classes needed to rerun
* the test or suite.
*
* @throws NullArgumentException if any of the passed values are null
.
*/
def apply(reporter: Reporter, stopper: Stopper, filter: Filter,
configMap: ConfigMap, distributor: Option[Distributor], tracker: Tracker, loader: ClassLoader): Unit
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy