Midje is a testing library for Clojure designed for readable, expressive test writing. It offers both top-down (mock-based) and bottom-up testing styles, helps ease migration from clojure.test, and promotes graceful syntax for developer-friendly test expression. Midje has loaded the tests and run them for the first time. It's also watching for file changes. When it sees them, it loads the changed files and any dependencies. But notice that you still have a repl prompt. That means you can move rapidly and smoothly among typing at the repl to try out code samples or look up documentation, having your editor send code snippets to the repl to evaluate, and saving source or test files to immediately see what passes or fails.
Features
- Friendly syntax resembling examples from Clojure literature (“facts” and “=>” assertions)
- Supports top-down (mockish) testing as well as standard test flows
- Encourages readability and abstraction in tests
- Provides helpful debugging and expressive failure messages
- Easy migration path from Clojure’s built-in clojure.test
- Integrates with development tools like CIDER through Emidje plugin for test running and reporting