org.specs2.specification

Grouped

trait Grouped extends GroupsLike

This trait can be used to standardize names for groups of examples in an acceptance specification.

class MySpecification extends Specification with Examples { def is = s2""" first example in first group ${g1.e1} second example in first group ${g1.e2}

first example in second group ${g2.e1} second example in second group ${g2.e2} """ }

trait Examples extends Grouped with Matchers { "first group of examples" - new g1 { e1 := ok e2 := ok } "second group of examples" - new g2 { e1 := ok e2 := ok } }

If you don't want to manage groups and examples numbers it is also possible to write the following (note the script.Specification):

class MySpecification extends script.Specification with Examples { def is = s2""" first example in first group second example in first group

first example in second group second example in second group """ }

trait Examples extends Grouped with Matchers { "first group of examples" - new group { eg := ok eg := ok } "second group of examples" - new group { eg := ok eg := ok } }

Self Type
Grouped
Linear Supertypes
GroupsLike, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Grouped
  2. GroupsLike
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait AutoNumberedGroup extends ExamplesGroup

    Definition Classes
    GroupsLike
  2. class NamedGroup extends AnyRef

  3. trait g1 extends ExamplesGroup

  4. trait g10 extends ExamplesGroup

  5. trait g11 extends ExamplesGroup

  6. trait g12 extends ExamplesGroup

  7. trait g13 extends ExamplesGroup

  8. trait g14 extends ExamplesGroup

  9. trait g15 extends ExamplesGroup

  10. trait g16 extends ExamplesGroup

  11. trait g17 extends ExamplesGroup

  12. trait g18 extends ExamplesGroup

  13. trait g19 extends ExamplesGroup

  14. trait g2 extends ExamplesGroup

  15. trait g20 extends ExamplesGroup

  16. trait g21 extends ExamplesGroup

  17. trait g22 extends ExamplesGroup

  18. trait g3 extends ExamplesGroup

  19. trait g4 extends ExamplesGroup

  20. trait g5 extends ExamplesGroup

  21. trait g6 extends ExamplesGroup

  22. trait g7 extends ExamplesGroup

  23. trait g8 extends ExamplesGroup

  24. trait g9 extends ExamplesGroup

  25. trait group extends ExamplesGroup with AutoNumberedGroup

    Definition Classes
    GroupsLike

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. var g1: ExamplesGroup

  12. var g10: ExamplesGroup

  13. var g11: ExamplesGroup

  14. var g12: ExamplesGroup

  15. var g13: ExamplesGroup

  16. var g14: ExamplesGroup

  17. var g15: ExamplesGroup

  18. var g16: ExamplesGroup

  19. var g17: ExamplesGroup

  20. var g18: ExamplesGroup

  21. var g19: ExamplesGroup

  22. var g2: ExamplesGroup

  23. var g20: ExamplesGroup

  24. var g21: ExamplesGroup

  25. var g22: ExamplesGroup

  26. var g3: ExamplesGroup

  27. var g4: ExamplesGroup

  28. var g5: ExamplesGroup

  29. var g6: ExamplesGroup

  30. var g7: ExamplesGroup

  31. var g8: ExamplesGroup

  32. var g9: ExamplesGroup

  33. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  34. def group(i: Int): ExamplesGroup

    Definition Classes
    GroupedGroupsLike
  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  37. implicit def namedGroup(s: String): NamedGroup

  38. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toString(): String

    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from GroupsLike

Inherited from AnyRef

Inherited from Any

Ungrouped