SpecificationsFinder

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

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete 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

Returns:

specifications created from specification names

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

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

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

Returns:

specification names by scanning files and trying to find specifications declarations

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

Returns:

specifications created from specification names