Spek Overview
Spek is a lightweight function builder style Behavior Driven Development framework, designed to be used with XCTest.
- Support common BDD parts: Describe, Context, BeforeAll, AfterAll, BeforeEach, AfterEach, It
- To disable a part, prefix it with
X
, for exampleXDescribe
,XIt
, ... - All blocks are throwing function, so are encouraged to
do try catch
-
BeforeAll
andAfterAll
are run before and after all enclosingDescribe
andIt
-
BeforeEach
andAfterEach
are run before and after all enclosingIt
-
Context
behaves the same asDescribe