DefaultSpecificationsFinder

org.specs2.runner.DefaultSpecificationsFinder

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete 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

def readClassNames(path: FilePath, objectPattern: Pattern, classPattern: Pattern, verbose: Boolean): Operation[List[String]]

Read the content of the file at 'path' and return all names matching the object pattern or the class pattern

Read the content of the file at 'path' and return all names matching the object pattern or the class pattern

Attributes

def specPattern(specType: String, pattern: String): String

pattern to use to get specification names from file contents

pattern to use to get specification names from file contents

Attributes

def specificationNames(pathGlob: String, pattern: String, basePath: DirectoryPath, verbose: Boolean): Operation[List[String]]

Value parameters

pathGlob

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

specification names by scanning files and trying to find specifications declarations

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
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

Inherited from:
SpecificationsFinder

Concrete fields

val fileSystem: FileSystem
val logger: Logger