Fork me on GitHub
#cursive
<
2018-01-29
>
mattford18:01:59

Hello hello.

mattford18:01:11

I'm struggling to get test-integration working.

mattford18:01:50

ctrl-shift-t seems to find or offer to setup tests in the correct namespace

mattford18:01:07

but when I try to run all tests in a name space it doesn't find any.

mattford18:01:39

my test structure looks like test/kixi/kibana/api-test

mattford19:01:58

oh I think I misunderstood, I can't run the tests from the calling namespace but rather have to run them from the test namespace.

yonatanel19:01:21

Does anyone know why IDeferred is considered unresolved? Could it be because IDeferred is defined in a custom macro definterface+ that calls definterface only if not already defined? The code works otherwise.

cfleming22:01:05

@mattford Right, the command will run all tests in the current namespace. Once you’ve done that though, you can then run the previous test action from anywhere.

cfleming22:01:38

@yonatanel Yes, that sounds plausible. Does definterface+ look just like definterface?

yonatanel07:01:22

https://github.com/ztellman/manifold/blob/193f5f48972c8e20dd0a9fc41a1311566a9f7bdd/src/manifold/utils.clj#L144

(defmacro definterface+ [name & body]
  (when-not (resolve name)
    `(definterface ~name ~@body)))

yonatanel07:01:38

Actually, I did edit the manifold source to use the original definterface and put it in checkouts folder which Cursive is aware of, and still had the same problem. I'm not sure what I'm doing wrong.

cfleming08:01:14

That shouldn’t be required. You can use the “Resolve as…” intention on definterface+, choose “Specify…” and select definterface.