midje Questions

4

Solved

I'm trying to write some unit tests for my clojure function (I'm using clojure.test, but I can switch to midje if necessary). I have a function that reads like : (defn GenerateNodes [is-sky-blue...
Stain asked 20/8, 2013 at 7:5

2

Solved

Here's the situation: I'm trying to unit test function A that calls function B. Function B is called in a slingshot try+ block and under certain circumstances it can throw using a slingshot throw+....
Hoiden asked 12/6, 2013 at 15:35

0

Consider the following (minimal) leiningen project ./project.clj: (defproject repro "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.5.1"] [midje "1.5.1"]]) ./repro/src/repro/core.clj:...
Horologist asked 6/10, 2013 at 17:2

1

Solved

I was reading Clojure in Action chapter 8 about TDD and experimented with the stubbing macro. It uses the dynamic binding mechanism to stub functions. Alas, in Clojure 1.3 it is not possible to use...
Cormophyte asked 22/10, 2011 at 17:49
1

© 2022 - 2024 — McMap. All rights reserved.