Package

com.fortysevendeg

lambdatest

Permalink

package lambdatest

Actions used in tests.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. lambdatest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class HoldLambdaReporter extends LambdaReporter with Product with Serializable

    Permalink

    A reporter that holds all messages to reported until the flush method is called.

  2. case class LambdaAct(acts: List[(LambdaState) ⇒ LambdaState]) extends Product with Serializable

    Permalink

    A sequence of tests.

    A sequence of tests.

    acts

    a list of the state changes that occur when running each test.

  3. trait LambdaReporter extends AnyRef

    Permalink

    The common trait for all reporters.

    The common trait for all reporters. Reporters are used to output test results.

  4. case class LambdaState extends Product with Serializable

    Permalink

    The immutable state object that holds all testing state.

    The immutable state object that holds all testing state. Operations create new immutable state object. The methods here should not be used in user test code (that extends LambdaTest). These methods can be called from new LambdaAct code.

  5. trait LambdaTest extends LambdaTestRun

    Permalink

    Each class (to be run by either SBT test on the run method) that contains tests should extend this trait.

  6. trait LambdaTestRun extends AnyRef

    Permalink

    Each class (to be run by the run method but not SBT test) that contains tests should extend this trait.

  7. case class StdoutLambdaReporter extends LambdaReporter with Product with Serializable

    Permalink

    A reporter that sends test results to StdOut.

Value Members

  1. implicit def GroupLambdaAct(x: Seq[LambdaAct]): LambdaAct

    Permalink

    Converts a Seq[LambdaAct] to a LambdaAct.

    Converts a Seq[LambdaAct] to a LambdaAct.

    x

    the sequence.

    returns

    the LambdaAct.

  2. object HoldLambdaReporter extends Serializable

    Permalink

    The companion object for the hold reporter.

  3. object LambdaOptions

    Permalink

    Configuration options.

  4. object LambdaState extends Serializable

    Permalink

    Companion object for LambdaState class.

  5. def SingleLambdaAct(act: (LambdaState) ⇒ LambdaState): LambdaAct

    Permalink

    A convenience abbreviation for a LambdaAct that has only a single transform.

    A convenience abbreviation for a LambdaAct that has only a single transform.

    act

    a state transformation.

    returns

    a LambdaAct the contains only the single act state tranformation.

  6. object StdoutLambdaReporter extends Serializable

    Permalink

    Companion object for the StdOut reporter.

  7. def assert(test: ⇒ Boolean, info: ⇒ String = "", showOk: Boolean = true): LambdaAct

    Permalink

    An assertion action for a single boolean.

    An assertion action for a single boolean.

    test

    the boolean.

    info

    a string to be reported.

    showOk

    an option that if false supresses the output for success.

    returns

    the LambdaAct.

  8. def assertEq[T](a: ⇒ T, b: ⇒ T, info: ⇒ String = "", showOk: Boolean = true): LambdaAct

    Permalink

    An assertion action that compares two values of the same type.

    An assertion action that compares two values of the same type.

    T

    the type of the values to be compared.

    a

    the first value.

    b

    the second value.

    info

    a string to be reported.

    showOk

    an option that if false supresses the output for success.

    returns

    the LambdaAct.

  9. def assertEx(test: ⇒ Unit, info: ⇒ String = "", check: (Exception) ⇒ Option[String] = (ex: Exception) ⇒ None, showOk: Boolean = true): LambdaAct

    Permalink

    An assertion that expects an exception to be raised.

    An assertion that expects an exception to be raised.

    test

    the code that should raise the exception.

    info

    a string to be reported.

    check

    a function that further checks the exception. It returns None if the the check passes and Some(msg) if the check fails (where msg desribes the failure).

    showOk

    an option that if false supresses the output for success.

    returns

    the LambdaAct.

  10. def assertSC(params: Parameters = Test.Parameters.default, showOk: Boolean = true)(prop: Prop): LambdaAct

    Permalink

    An assertion that checks a ScalaCheck property.

    An assertion that checks a ScalaCheck property.

    showOk

    an option that if false supresees the output for success.

    prop

    the ScalaCheck property to be checked.

    returns

    the LambdaAct.

  11. def changeOptions(change: (LambdaOptions) ⇒ LambdaOptions)(body: ⇒ LambdaAct): LambdaAct

    Permalink

    Changes the options within its body.

    Changes the options within its body.

    change

    a function to change the options.

    body

    the actions inside.

    returns

    the LambdaAct.

  12. def exec[T](body: ⇒ Unit): LambdaAct

    Permalink

    An action that executed the code in its body

    An action that executed the code in its body

    body

    the Scala code to be executed.

    returns

    the LambdaAct.

  13. def label(name: String, parallel: Boolean = false)(body: ⇒ LambdaAct): LambdaAct

    Permalink

    A compund action that defines a labeled block of code.

    A compund action that defines a labeled block of code.

    name

    the name of the label.

    parallel

    if true, run top level actions in body in parallel.

    body

    the actions inside the label.

    returns

    the LambdaAct.

  14. def run(name: String, body: ⇒ LambdaTestRun, parallel: Boolean = false, reporter: LambdaReporter = StdoutLambdaReporter(), change: (LambdaOptions) ⇒ LambdaOptions = (x: LambdaOptions) ⇒ x): Unit

    Permalink

    This command is used to directly run a test.

    This command is used to directly run a test.

    name

    the name for the test.

    body

    the test to be run.

    parallel

    an option to run top level actions in parallel.

    reporter

    an option to specify an alternate reporter.

    change

    an option to change the options for the run.

  15. def test(name: String, parallel: Boolean = false)(body: ⇒ LambdaAct): LambdaAct

    Permalink

    A compund action that defines a single test.

    A compund action that defines a single test.

    name

    the name of the test.

    parallel

    if true, run top level actions in body in parallel.

    body

    the actions inside the test.

    returns

    the LambdaAct.

Inherited from AnyRef

Inherited from Any

Ungrouped