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:
IdiomaticMockitoArgumentMatchersSugar: 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 (
-). UseSpecfor general tests andAsyncSpecfor non-blocking asynchronous tests.Mixed-in traits include:
Diagrams: show diagram of expression values when the assertion failsEitherValues:left.valueandright.valuemethods forEitherOptionValues:valuemethod forOptionTryValues:successandfailuremethods forTry
Also consider mixing:
Inside: make assertions about nested object graphs using pattern matchingInspectors: enable assertions to be made about collectionsPartialFunctionValues:valueAtmethod forPartialFunctionPrivateMethodTester: testing of private methodsTableDrivenPropertyChecks: property checks against tables of dataWebBrowser: domain specific language for browser-based tests