joyride

Erick Isos 2022-07-10T01:48:07.924509Z

Does it makes sense for the project to have custom unit/integration tests running with kaocha? I was workin’ on https://github.com/BetterThanTomorrow/joyride/pull/81 but want to know your opinion about that.

pez 2022-07-10T09:48:33.038199Z

Thanks for caring about Joyride testing! We haven't really decided on how to test Joyride. As the code is currently factored, I think most tests will need the full VS Code environment to run. We're leaning towards embracing this fact and use integration tests rather than unit tests, and also to try use Joyride for the testing. I don't know enough about Kaocha to see how it fits into such a picture. What do you say, @borkdude?

πŸ™Œ 1
Erick Isos 2022-07-11T21:58:31.537049Z

I think that it would be great to add both of those, I mean, by setting unit test on minimal operations (maybe some logic if we have) and integration just to check whether we are working well with vscode at all, thx for your answer @pez

borkdude 2022-07-11T22:08:38.652559Z

Koacha's CLJS testing is a bit complex (version 2) and version 1 doesn't support advanced compilation, which is important to test I think. I've always used https://github.com/Olical/cljs-test-runner for this which is straightforward to use. You can see the setup for that in several of my projects

borkdude 2022-07-11T22:11:28.497519Z

But the actual setup of such a framework isn't the hard problem, but if you'd like to submit a PR for this, be my guest.

borkdude 2022-07-11T22:11:45.387689Z

The harder problem is to actually figure out a good way of testing

Erick Isos 2022-07-11T22:14:44.873699Z

Completely agree 😰 maybe we can check how to split the project in smaller functions that could be tested without checking the interface with vscode (on the unit side)

borkdude 2022-07-11T22:15:39.107159Z

There's also some ways to integration-test a plugin right? Perhaps you can look into this a bit as well.

Erick Isos 2022-07-11T22:24:43.733749Z

Let me check that, it would be really great

❀️ 1
borkdude 2022-07-10T10:22:18.826749Z

Maybe we can steal ideas from there. Also maybe post a link to joyride

πŸ’œ 1
pez 2022-07-10T11:06:26.554319Z

I posted a link to Joyride in a comment. We probably should also post in /r/vscode about it. I'll see if I can make a video targeted at non-Clojurians and post that.

πŸ’œ 1