SpecificationsFinder

org.specs2.runner.SpecificationsFinder
See theSpecificationsFinder companion object

This trait loads specifications found on a given source directory based on a regular expression representing the Specification name, usually .*Spec

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def findSpecifications(glob: String = ..., pattern: String = ..., filter: String => Boolean = ..., basePath: DirectoryPath = ..., verbose: Boolean = ..., classLoader: ClassLoader = ...): Operation[List[SpecificationStructure]]

Value parameters

filter

a function to filter out unwanted specifications

glob

a path to a directory containing scala files (it can be a glob: i.e. "dir/**/*spec.scala")

pattern

a regular expression which is supposed to match an object name extending a Specification

Attributes

Returns

specifications created from specification names

Concrete methods

def specifications(glob: String = ..., pattern: String = ..., filter: String => Boolean = ..., basePath: DirectoryPath = ..., verbose: Boolean = ..., classLoader: ClassLoader = ...): Seq[SpecificationStructure]

Value parameters

filter

a function to filter out unwanted specifications

glob

a path to a directory containing scala files (it can be a glob: i.e. "dir/**/*spec.scala")

pattern

a regular expression which is supposed to match an object/class name extending a Specification

Attributes

Returns

specifications created from specification names