reveal

vlaaad 2022-03-04T09:48:27.435369Z

If you don't read #announcementshttps://clojurians.slack.com/archives/C06MAR553/p1646386535272909

👏 2
2022-05-28T11:18:43.436699Z

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 👍)

vlaaad 2022-05-28T11:28:05.131009Z

You can see the code that checks test action availability: https://github.com/vlaaad/reveal/blob/master/src/vlaaad/reveal/test.clj#L583

vlaaad 2022-05-28T11:28:49.761949Z

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

2022-05-28T11:39:21.905599Z

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.

vlaaad 2022-05-28T11:44:01.506469Z

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

2022-05-28T11:46:29.526909Z

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

❤️ 1
2022-05-28T12:36:57.658579Z

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. 👍

vlaaad 2022-05-28T12:40:52.599559Z

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