Fork me on GitHub
#reveal
<
2022-03-04
>
andre.richards11:05:43

I don't get the test contextual action when I evaluate a deftest and press [Enter] on the result in the Output Panel. I am using latest reveal (1.3.273). The test runs fine if I use Cursive's "Run test under caret in REPL". Is there anything else I need to do or can you point me where to investigate? (Great tool, I love it, thanks 👍)

vlaaad11:05:49

You can try running parts of it on the result of your deftest evaluation and see if it hits

andre.richards11:05:21

Thanks for the pointer to that code. I'll check that now. I have figured out that the action menu for the namespace does contain test option, and works fine.

vlaaad11:05:01

Strange that it doesn't work for vars though..

andre.richards11:05:29

Thanks for your help, I'll investigate further. Have a nice weekend!

❤️ 1
andre.richards12:05:57

OK, I had not loaded vlaaad.reveal.test anywhere, so the :vlaaad.reveal.action/test action was not registered in registry. I must have executed some code that caused vlaaad.reveal.test`` to be loaded by the time I tested the namespace. If I make sure vlaaad.reveal.test is required somewhere in my code, the test contextual action shows for Var and Namespace. Thanks again for your help. 👍

vlaaad12:05:52

Hmm, you shouldn't have to load that ns, it's required in vlaaad.reveal