package commons
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
abstract
class
AsyncSpec extends AsyncFreeSpec with SpecLike with Mocking
Base class for non-blocking asynchronous tests.
Base class for non-blocking asynchronous tests.
Based on
AsyncFreeSpec
: nested tests are written inside text clauses denoted with the dash operator (-). - trait Constants extends AnyRef
-
trait
Mocking extends IdiomaticMockito with ArgumentMatchersSugar
Base trait for mocking.
Base trait for mocking.
Mixed-in traits include:
IdiomaticMockito
ArgumentMatchersSugar
: syntax sugar for Mockito
-
abstract
class
Spec extends AnyFreeSpec with SpecLike with Mocking
Base class for general tests.
Base class for general tests.
Based on
AnyFreeSpec
: nested tests are written inside text clauses denoted with the dash operator (-). -
trait
SpecLike extends Diagrams with EitherValues with OptionValues with TryValues
Base trait for unit tests.
Base trait for unit tests.
Test cases are nested inside text clauses denoted with the dash operator (
-
). UseSpec
for general tests andAsyncSpec
for non-blocking asynchronous tests.Mixed-in traits include:
Diagrams
: show diagram of expression values when the assertion failsEitherValues
:left.value
andright.value
methods forEither
OptionValues
:value
method forOption
TryValues
:success
andfailure
methods forTry
Also consider mixing:
Inside
: make assertions about nested object graphs using pattern matchingInspectors
: enable assertions to be made about collectionsPartialFunctionValues
:valueAt
method forPartialFunction
PrivateMethodTester
: testing of private methodsTableDrivenPropertyChecks
: property checks against tables of dataWebBrowser
: domain specific language for browser-based tests