Package

munit

Permalink

package munit

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

Type Members

  1. class AfterEach extends Serializable

    Permalink
  2. abstract class AnyFixture[T] extends AnyRef

    Permalink

    AnyFixture allows you to acquire resources during setup and clean up resources after the tests finish running.

    AnyFixture allows you to acquire resources during setup and clean up resources after the tests finish running.

    Fixtures can be local to a single test case by overriding beforeEach and afterEach, or they can be re-used for an entire test suite by extending beforeAll and afterAll.

    It's preferable to use a sub-class like munit.Fixture or munit.FutureFixture instead of this class. Extend this class if you're writing an integration a third-party type like Cats Resource.

    See also

    https://scalameta.org/munit/docs/fixtures.html

  3. trait Assertions extends CompileErrorMacro

    Permalink
  4. trait BaseFunSuite extends Suite with Assertions with FunFixtures with TestOptionsConversions with TestTransforms with SuiteTransforms with ValueTransforms

    Permalink
  5. class BeforeEach extends Serializable

    Permalink
  6. class Clue[+T] extends Serializable

    Permalink
  7. class Clues extends AnyRef

    Permalink
  8. trait Compare[A, B] extends AnyRef

    Permalink

    A type-class that is used to compare values in MUnit assertions.

    A type-class that is used to compare values in MUnit assertions.

    By default, uses == and allows comparison between any two types as long they have a supertype/subtype relationship. For example:

    - Compare[T, T] OK - Compare[Some[Int], Option[Int]] OK, subtype - Compare[Option[Int], Some[Int]] OK, supertype - Compare[List[Int], collection.Seq[Int]] OK, subtype - Compare[List[Int], Vector[Int]] Error, requires upcast to Seq[Int]

    Annotations
    @implicitNotFound( ... )
  9. trait ComparePriority1 extends ComparePriority2

    Permalink

    Allows comparison between A and B when A is a subtype of B

  10. trait ComparePriority2 extends AnyRef

    Permalink

    Allows comparison between A and B when B is a subtype of A.

    Allows comparison between A and B when B is a subtype of A.

    This implicit is defined separately from ComparePriority1 in order to avoid diverging implicit search when comparing equal types.

  11. class ComparisonFailException extends ComparisonFailure with FailExceptionLike[ComparisonFailException]

    Permalink

    The base exception for all comparison failures.

    The base exception for all comparison failures.

    This class exists so that it can extend org.junit.ComparisonFailure, which is recognised by IntelliJ so that users can optionally compare the obtained/expected values in a GUI diff explorer.

  12. class FailException extends AssertionError with FailExceptionLike[FailException]

    Permalink
  13. trait FailExceptionLike[T <: AssertionError] extends Serializable

    Permalink

    The base class for all MUnit FailExceptions.

    The base class for all MUnit FailExceptions.

    Implementation note: this class exists so that we could fix the issue https://youtrack.jetbrains.com/issue/SCL-18255 In order to support the JUnit comparison GUI in IntelliJ we need to extend org.junit.ComparisonFailure, which is a class and not an interface. We can't make munit.FailException extend org.junit.ComparisonFailure since not all "fail exceptions" are "comparison failures". Instead, we introduced munit.ComparisionFailException, which extends org.junit.ComparisonFailure and this base trait. Internally, MUnit should match against FailExceptionLike[_] instead of munit.FailException directly.

  14. class FailSuiteException extends FailException

    Permalink
  15. abstract class Fixture[T] extends AnyFixture[T]

    Permalink

    Fixture allows you to acquire resources during setup and clean up resources after the tests finish running.

    Fixture allows you to acquire resources during setup and clean up resources after the tests finish running.

    Fixtures can be local to a single test case by overriding beforeEach and afterEach, or they can be re-used for an entire test suite by extending beforeAll and afterAll.

    There is no functional difference between extending Fixture[T] or AnyFixture[T]. The only difference is that an IDE will auto-complete Unit in the result type instead of Any.

    See also

    https://scalameta.org/munit/docs/fixtures.html

  16. class Framework extends JUnitFramework

    Permalink
  17. trait FunFixtures extends AnyRef

    Permalink
  18. abstract class FunSuite extends Suite with BaseFunSuite

    Permalink
  19. abstract class FutureFixture[T] extends AnyFixture[T]

    Permalink

    FutureFixture allows you to acquire resources during setup and clean up resources after the tests finish running.

    FutureFixture allows you to acquire resources during setup and clean up resources after the tests finish running.

    Fixtures can be local to a single test case by overriding beforeEach and afterEach, or they can be re-used for an entire test suite by extending beforeAll and afterAll.

    There is no functional difference between extending FutureFixture[T] or AnyFixture[T]. The only difference is that an IDE will auto-complete Future[Unit] in the result type instead of Any.

    See also

    https://scalameta.org/munit/docs/fixtures.html

  20. class IgnoreSuite extends Annotation with Annotation with ClassfileAnnotation

    Permalink
  21. final class Location extends Annotation with Serializable

    Permalink
  22. class MUnitRunner extends Runner with Filterable with Configurable

    Permalink
  23. trait PlatformSuite extends AnyRef

    Permalink
  24. trait Printable extends AnyRef

    Permalink

    Override this class to customize the default pretty-printer.

  25. trait Printer extends AnyRef

    Permalink

    Implement this trait to customize the default printer

  26. abstract class Suite extends PlatformSuite

    Permalink

    The base class for all test suites.

    The base class for all test suites. Extend this class if you don't need the functionality in FunSuite.

    Annotations
    @RunWith()
  27. trait SuiteTransforms extends AnyRef

    Permalink
  28. class Tag extends munit.internal.junitinterface.Tag with Annotation with Serializable

    Permalink
  29. final class Test extends Serializable

    Permalink

    Metadata about a single test case.

  30. final class TestOptions extends Serializable

    Permalink

    Options used when running a test.

    Options used when running a test. It can be built implicitly from a String (@see munit.TestOptionsConversions)

  31. trait TestOptionsConversions extends AnyRef

    Permalink
  32. trait TestTransforms extends AnyRef

    Permalink
  33. trait ValueTransforms extends AnyRef

    Permalink
  34. type GenericAfterEach[T] = AfterEach

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use AfterEach instead

  35. type GenericBeforeEach[T] = BeforeEach

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use BeforeEach instead

  36. type GenericTest[T] = Test

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use Test instead

Value Members

  1. object Assertions extends Assertions

    Permalink
  2. object Clue extends ClueMacro with Serializable

    Permalink
  3. object Clues

    Permalink
  4. object Compare extends ComparePriority1

    Permalink
  5. object EmptyPrinter extends Printer

    Permalink

    Default printer that does not customize the pretty-printer

  6. val Fail: Tag

    Permalink
  7. val Flaky: Tag

    Permalink
  8. val Ignore: Tag

    Permalink
  9. object Location extends LocationMacro with Serializable

    Permalink
  10. object MUnitRunner

    Permalink
  11. val Only: Tag

    Permalink
  12. val Slow: Tag

    Permalink
  13. object TestOptions extends TestOptionsConversions with Serializable

    Permalink
  14. object TestValues

    Permalink

    Values that have special treatment when evaluating values produced by tests.

  15. package internal

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped