org.specs2.control
Members list
Packages
Type members
Classlikes
This exception class is used when an Action is transformed to a Task to avoid losing information
This exception class is used when an Action is transformed to a Task to avoid losing information
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
This trait provides simple a way to print out any object to the console:
This trait provides simple a way to print out any object to the console:
"this string".pp must_== "this string"
will print 'this string' and pass it to the rest of the expectation
Attributes
- Companion
- object
- Supertypes
- Known subtypes
Attributes
default filter for specs2 runs
default filter for specs2 runs
Attributes
- Supertypes
-
trait ExecutionOrigintrait Stacktracestrait Serializabletrait Producttrait Equalstrait StackTraceFilterclass Objecttrait Matchableclass AnyShow all
- Self type
This trait provides methods to catch exceptions and transform them into values which can be passed to further computations.
This trait provides methods to catch exceptions and transform them into values which can be passed to further computations.
It uses the facilities found in the scala.util.control.Exception object while providing a more concise api on some use cases.
Attributes
- See also
-
org.specs2.control.ExceptionsSpec for examples
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Exceptions.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Exceptions.type
Execute external commands
Execute external commands
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Executable.type
This trait is used primarily to change the junit behavior depending on the execution environment
This trait is used primarily to change the junit behavior depending on the execution environment
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object DefaultStackTraceFilter.typeobject ExecutionOrigin.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ExecutionOrigin.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FutureInstances.type
This trait describes something which has a stackTrace with:
This trait describes something which has a stackTrace with:
- a list of stacktrace element
This is used to provide a common interface to execute.Failure and execute.Error
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
This trait is used to abuse method overloading and allow some of the methods in specs2 DSL to be applicable to various parameters.
This trait is used to abuse method overloading and allow some of the methods in specs2 DSL to be applicable to various parameters.
For example in a mutable specification, the >> method is overloaded for lots of different arguments:
- result
- function of the Environment
- function of the Command line
- ...
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
- Self type
-
ImplicitParameters.type
Implementation of the StackTraceFilter trait with a list of include/exclude patterns
Implementation of the StackTraceFilter trait with a list of include/exclude patterns
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait StackTraceFilterclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object DefaultStackTraceFilter.type
- Self type
Factory object to build a stack trace filter from include/exclude expressions:
Factory object to build a stack trace filter from include/exclude expressions:
.*specs2 ==> include .*specs2 traces .specs2/scala. ==> include .specs2 traces, exclude scala. traces .*specs2,scala/scalaz,eclipse ==> include .*specs2,scala traces, exclude scalaz and eclipse traces
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
class holding a value to be evaluated lazily
class holding a value to be evaluated lazily
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
This trait can be used to allow some function to be called with varargs, with values being evaluated lazily:
This trait can be used to allow some function to be called with varargs, with values being evaluated lazily:
def method[T](values: LazyParameter[T]*) = {
values.toStream // use the toStream method to consume the values lazily
}
// usage
method(exp1, exp2, exp3)
Note that the values are really evaluated once, unlike a by-name parameter.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object LazyParameters.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
LazyParameters.type
This class simply encapsulates a lazy value which will be only evaluated once
This class simply encapsulates a lazy value which will be only evaluated once
Attributes
- See also
-
org.specs2.specification.process.RandomSequentialExecution for an example of use
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
This factory creates named threads which can be prefixed by "specs2" to track the threads used by specs2 for the specification execution
This factory creates named threads which can be prefixed by "specs2" to track the threads used by specs2 for the specification execution
Contributed by @jedws
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ThreadFactoryclass Objecttrait Matchableclass AnyShow all
Use this trait to disable the pp
method on objects
Use this trait to disable the pp
method on objects
Attributes
- Supertypes
Attributes
- Supertypes
This filter doesn't do anything
Syntactic sugar to execute an action a given number of times
Syntactic sugar to execute an action a given number of times
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait NoNumberOfTimesobject NumberOfTimes.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
NumberOfTimes.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Operations.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Properties.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Properties.type
This class represents values which are evaluated lazily and which may even be missing.
This class represents values which are evaluated lazily and which may even be missing.
It has Option-like function and can be also converted to an Either object
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
This trait filters an Exception stacktrace
This trait filters an Exception stacktrace
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object DefaultStackTraceFilter.typeobject NoStackTraceFilter.type
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StackTraceFilter.type
Utility methods to determine the origin of the execution of the current code
Utility methods to determine the origin of the execution of the current code
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait ExecutionOriginobject DefaultStackTraceFilter.typeobject ExecutionOrigin.typeobject Stacktraces.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Stacktraces.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Throwables.type
This trait adds some utility methods to Throwable
objects.
This trait adds some utility methods to Throwable
objects.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Throwablex.type
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Throwablex.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TraceLocation.type
Utility object to show a parameter as used In particular this is useful to avoid warnings with ImplicitParameters
Utility object to show a parameter as used In particular this is useful to avoid warnings with ImplicitParameters
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Use.type
This exception class is used to notify the user of instantiation errors
This exception class is used to notify the user of instantiation errors
Attributes
- Supertypes
-
trait Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Types
Actions logging
Actions logging
Attributes
Value members
Concrete methods
warn the user about something that is probably wrong on his side, this is not a specs2 bug, then fail to stop all further computations
warn the user about something that is probably wrong on his side, this is not a specs2 bug, then fail to stop all further computations
Attributes
Implicits
Implicits
This implicit allows an Operation[result] to be used inside an example.
This implicit allows an Operation[result] to be used inside an example.