specs2

files

object files extends FilesRunner

run all specifications found in the test directory

Linear Supertypes
FilesRunner, SystemExit, SpecificationsFinder, SourceFile, ConsoleOutput, Classes, Output, FileSystem, FileWriter, FileReader, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. files
  2. FilesRunner
  3. SystemExit
  4. SpecificationsFinder
  5. SourceFile
  6. ConsoleOutput
  7. Classes
  8. Output
  9. FileSystem
  10. FileWriter
  11. FileReader
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def afterExecution(specs: Seq[SpecificationStructure])(implicit args: Arguments): Unit

    print a message after the execution based on the number of specifications

    print a message after the execution based on the number of specifications

    Attributes
    protected
    Definition Classes
    FilesRunner
  7. def append(path: String)(function: (Writer) ⇒ Unit): Unit

    Definition Classes
    FileWriter
  8. def appendToFile(path: String, content: ⇒ String): Unit

    Definition Classes
    FileWriter
  9. def appendToXmlFile(path: String, content: ⇒ NodeSeq): Unit

    Definition Classes
    FileWriter
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def beforeExecution(implicit args: Arguments): Unit

    print a message before the execution

    print a message before the execution

    Attributes
    protected
    Definition Classes
    FilesRunner
  12. def canRead(path: String): Boolean

    Definition Classes
    FileSystem
  13. def canWrite(path: String): Boolean

    Definition Classes
    FileSystem
  14. def classNames(packageName: String, content: String, pattern: Pattern, suffix: String, verbose: Boolean): Seq[String]

    Definition Classes
    SourceFile
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def copy(input: InputStream, output: OutputStream): Unit

    Definition Classes
    FileSystem
  17. def copyDir(src: String, dest: String): Unit

    Definition Classes
    FileSystem
  18. def copyFile(path: String, dest: String): Unit

    Definition Classes
    FileSystem
  19. def copySpecResourcesDir(base: String, src: String, outputDir: String, loader: ClassLoader): Unit

    Definition Classes
    FileSystem
  20. def create[T <: AnyRef](className: String, classLoader: ClassLoader)(implicit m: ClassTag[T]): Either[Throwable, T]

    Definition Classes
    Classes
  21. def createArguments(arguments: Array[String]): Arguments

    returns

    the Arguments object depending on the command-line options

    Attributes
    protected
    Definition Classes
    FilesRunner
  22. def createDir(path: String): Boolean

    Definition Classes
    FileSystem
  23. def createFile(path: String): AnyVal

    Definition Classes
    FileWriter
  24. def createObject[T <: AnyRef](className: String, printMessage: Boolean, printStackTrace: Boolean)(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  25. def createObject[T <: AnyRef](className: String, printMessage: Boolean)(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  26. def createObject[T <: AnyRef](className: String)(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  27. def createSpecification(className: String, printMessage: Boolean, printStackTrace: Boolean): Option[SpecificationStructure]

    returns

    a SpecificationStructure object from a className if that class is a SpecificationStructure class.
    Tries to load the class name and cast it to a specification None in case of an exception.

    Definition Classes
    SpecificationsFinder
  28. def createSpecification(className: String, verbose: Boolean = false)(implicit args: Arguments): Option[SpecificationStructure]

    returns

    a SpecificationStructure object from a className if that class is a SpecificationStructure class.
    Tries to load the class name and cast it to a specification None in case of an exception.

    Definition Classes
    SpecificationsFinder
  29. def delete(path: String): Boolean

    Definition Classes
    FileWriter
  30. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  32. def exists(path: String): Boolean

    Definition Classes
    FileWriter
  33. def exitSystem(executed: Seq[ExecutedSpecification]): Unit

    exit the system with a specific code:

    exit the system with a specific code:

    - 0 if all the specifications are successful - 1 if there are only failures - 100 if there is any error - 101 if one of them could not even be executed (this is represented by None)

    Definition Classes
    SystemExit
  34. def exitSystem(executed: Option[ExecutedSpecification]): Unit

    exit the system for one executed specification (None means that the specification could not be executed)

    exit the system for one executed specification (None means that the specification could not be executed)

    Definition Classes
    SystemExit
  35. def exitTheSystem(executed: Seq[Option[ExecutedSpecification]]): Unit

    Attributes
    protected
    Definition Classes
    SystemExit
  36. def exitWith(status: Int): Unit

    this method can be overriden for testing

    this method can be overriden for testing

    Attributes
    protected
    Definition Classes
    SystemExit
  37. def filePaths(basePath: String, path: String, verbose: Boolean): Seq[String]

    Definition Classes
    FileSystem
  38. def filterFiles(found: Seq[File], path: String, verbose: Boolean): Seq[String]

    Definition Classes
    FileSystem
  39. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  40. def flush(): Unit

    Definition Classes
    ConsoleOutput → Output
  41. def fromBaseFile(base: File): (File) ⇒ String

    Definition Classes
    FileReader
  42. def getAbsolutePath(path: String): String

    Definition Classes
    FileSystem
  43. def getCanonicalPath(path: String): String

    Definition Classes
    FileSystem
  44. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  45. def getName(path: String): String

    Definition Classes
    FileSystem
  46. def getParent(path: String): String

    Definition Classes
    FileSystem
  47. def getWriter(path: String, append: Boolean): Writer

    Definition Classes
    FileWriter
  48. def globToPattern(glob: String): String

    Definition Classes
    FileSystem
  49. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  50. def inputStream(filePath: String): InputStream

    Definition Classes
    FileReader
  51. def isAbsolute(path: String): Boolean

    Definition Classes
    FileSystem
  52. def isDir(path: String): Boolean

    Definition Classes
    FileSystem
  53. def isDirectory(path: String): Boolean

    Definition Classes
    FileSystem
  54. def isFile(path: String): Boolean

    Definition Classes
    FileSystem
  55. def isHidden(path: String): Boolean

    Definition Classes
    FileSystem
  56. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  57. def isVerbose(implicit args: Arguments): Boolean

    Definition Classes
    FilesRunner
  58. def listFiles(path: String): List[String]

    Definition Classes
    FileSystem
  59. def loadXhtmlFile(filePath: String, report: (Exception, String) ⇒ Unit, sourceErrors: Boolean): NodeSeq

    Definition Classes
    FileReader
  60. def loadXmlFile(filePath: String)(report: (Exception) ⇒ Unit): NodeSeq

    Definition Classes
    FileReader
  61. def main(arguments: Array[String]): Unit

    Definition Classes
    FilesRunner
  62. def md5(f: File): String

    Definition Classes
    FileReader
  63. def mkdirs(path: String): Boolean

    Definition Classes
    FileWriter
  64. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  65. final def notify(): Unit

    Definition Classes
    AnyRef
  66. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  67. def packageName(content: String): String

    Definition Classes
    SourceFile
  68. def print(m: Any): Unit

    Definition Classes
    Output
  69. def printStackTrace(t: Throwable): Unit

    Definition Classes
    Output
  70. def printf(s: String, args: Any*): Unit

    Definition Classes
    ConsoleOutput → Output
  71. def println(m: Any): Unit

    Definition Classes
    Output
  72. def readBytes(path: String): Array[Byte]

    Definition Classes
    FileReader
  73. def readFile(path: String): String

    Definition Classes
    FileReader
  74. def readLines(path: String): IndexedSeq[String]

    Definition Classes
    FileReader
  75. def removeDir(path: String): String

    Definition Classes
    FileSystem
  76. def reporter(implicit args: Arguments): DefaultReporter with AllExporting

    Definition Classes
    FilesRunner
  77. def run(arguments: Array[String]): List[ExecutedSpecification]

    Definition Classes
    FilesRunner
  78. def samePath(p1: String, p2: String): Boolean

    Definition Classes
    FileSystem
  79. def silentLoadXhtmlFileReport: (Exception, String) ⇒ Unit

    Definition Classes
    FileReader
  80. 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

    Definition Classes
    SpecificationsFinder
  81. def specificationClassNames(implicit args: Arguments): Seq[String]

    returns

    the specifications class names to execute

    Attributes
    protected
    Definition Classes
    FilesRunner
  82. def specificationNames(path: String = "**/*.scala", pattern: String = ".*Spec", basePath: String = FromSource.srcTestDir, verbose: Boolean = false): Seq[String]

    path

    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

    Definition Classes
    SpecificationsFinder
  83. def specifications(implicit args: Arguments): Seq[SpecificationStructure]

    returns

    the specifications to execute

    Attributes
    protected
    Definition Classes
    FilesRunner
  84. def specifications(path: String = "**/*.scala", pattern: String = ".*Spec", filter: (String) ⇒ Boolean = (name: String) => true, basePath: String = FromSource.srcTestDir, verbose: Boolean = false)(implicit args: Arguments = Arguments()): Seq[SpecificationStructure]

    path

    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

    filter

    a function to filter out unwanted specifications

    returns

    specifications created from specification names

    Definition Classes
    SpecificationsFinder
  85. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  86. def toString(): String

    Definition Classes
    AnyRef → Any
  87. def tryToCreateObject[T <: AnyRef](className: String, printMessage: Boolean, printStackTrace: Boolean, loader: ClassLoader, parameter: Option[AnyRef])(implicit m: ClassTag[T]): Option[T]

    Definition Classes
    Classes
  88. def tryToCreateObjectEither[T <: AnyRef](className: String, loader: ClassLoader, parameter: Option[AnyRef])(implicit m: ClassTag[T]): Either[Throwable, T]

    Definition Classes
    Classes
  89. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. def write(path: String)(function: (Writer) ⇒ Unit): Unit

    Definition Classes
    FileWriter
  93. def writeFile(path: String, content: ⇒ String): Unit

    Definition Classes
    FileWriter
  94. def writeXmlFile(path: String, content: ⇒ NodeSeq): Unit

    Definition Classes
    FileWriter

Inherited from FilesRunner

Inherited from SystemExit

Inherited from SpecificationsFinder

Inherited from SourceFile

Inherited from ConsoleOutput

Inherited from Classes

Inherited from Output

Inherited from FileSystem

Inherited from FileWriter

Inherited from FileReader

Inherited from AnyRef

Inherited from Any

Ungrouped