SpecificationsFinder

org.specs2.runner.SpecificationsFinder
See theSpecificationsFinder companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def findSpecifications(glob: String, pattern: String, filter: String => Boolean, basePath: DirectoryPath, verbose: Boolean, classLoader: ClassLoader, filePathReader: FilePathReader, env: Env): 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

Inherited from:
SpecificationsFinder
def readClassNames(path: FilePath, objectPattern: Pattern, classPattern: Pattern, filePathReader: FilePathReader, 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

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

Inherited from:
SpecificationsFinder
def specificationNames(pathGlob: String, pattern: String, basePath: DirectoryPath, filePathReader: FilePathReader, 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 from:
SpecificationsFinder
def specifications(glob: String, pattern: String, filter: String => Boolean, basePath: DirectoryPath, verbose: Boolean, classLoader: ClassLoader, filePathReader: FilePathReader): 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