munit
Type members
Classlikes
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.
- Value Params
- expected
the expected value from this comparison.
- location
the source location where this exception was thrown.
- message
the exception message.
- obtained
the obtained value from this comparison.
Default printer that does not customize the pretty-printer
Default printer that does not customize the pretty-printer
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.
Metadata about a single test case.
Metadata about a single test case.
- Value Params
- body
the function to be evaluated for this test case.
- location
the file and line number where this test was defined.
- tags
the annotated tags for this test case.
- Companion
- object
Override this class to customize the default pretty-printer.
Override this class to customize the default pretty-printer.
Implement this trait to customize the default printer
Implement this trait to customize the default printer
The base class for all test suites. Extend this class if you don't need the functionality in FunSuite.
The base class for all test suites. Extend this class if you don't need the functionality in FunSuite.
Options used when running a test. It can be built implicitly from a String (@see munit.TestOptionsConversions)
Options used when running a test. It can be built implicitly from a String (@see munit.TestOptionsConversions)
Values that have special treatment when evaluating values produced by tests.
Values that have special treatment when evaluating values produced by tests.