clojure

2026-03-04T08:35:24.340369Z

Recently became a QA engineer, it's an interesting change, from backend development to QA, and while the company mostly uses Playwright for API testing, I was wondering if there are other ecosystem for testing in Clojure, other than clojure.test/Kaocha to setup test plans, seeding etc. I'm definitely going to start creating my own test control panel in Clojure. Couldn't find much in Google, but it seems QA tooling is not as mature?

seancorfield 2026-03-04T14:07:01.800669Z

LazyTest is another option for unit testing etc, in the clojure.test mold. Etaoin is more like Playwright. Can you describe what you're looking for that doesn't seem to exist?

reefersleep 2026-03-04T15:35:12.416489Z

Afaik there's no playwright equal in terms of featurefulness

seancorfield 2026-03-04T15:38:02.313449Z

We used to use clj-webdriver but switched to Playwright in our Clojure codebase at work. We haven't tried Etaoin.

reefersleep 2026-03-04T15:41:20.655029Z

There are bits of it, like Sean mentions, Etaoin is like Selenium. It's great for that, but that's just a part of the puzzle. Portfolio is great for demoing and eyeballing stateless UI components, and initially seems like a good springboard for what you're after, but the design is specifically aimed towards viewing a library of stateless components. There's no built-in integration of automatic testing.

seancorfield 2026-03-04T15:43:36.216639Z

My experience of testing frontend stuff is very limited. Our frontend at work is based on React.js and uses Jest for all of the automated testing at the component level.

reefersleep 2026-03-04T15:44:11.608099Z

I think there's a gap here ripe for the taking. The Clojure community generally isn't big on testing, afaik. That probably also affects the perceived value of a new player in this arena... I think it would be amazing to see something like Playwright in clj/cljs, but I know it's a big task to implement and maintain something like that, which should probably be weighed against a potential user base.

seancorfield 2026-03-04T16:54:36.224329Z

Comparing our Jest-based unit tests for the frontend with the Playwright-based "end-to-end" tests for some parts -- the Jest-based stuff is so much more reliable and maintainable. The Playwright stuff is complex, lots of mutable state, and is where we have the most flaky, slow tests. Could Clojurians produce a "better Playwright"? Yeah, absolutely, but does Playwright fit with enough of the way Clojurians build and test apps? Feels like a niche within a niche.

seancorfield 2026-03-04T16:56:28.928159Z

Even where we are testing our own APIs, we use a hato-based HTTP testing harness and clojure.test / Expectations / LazyTest (we started migrating from clojure.test to Expectations years ago and more recently we've been migrating to LazyTest).

danieroux 2026-03-04T19:11:23.377799Z

Playwright from the REPL is so much fun: https://github.com/pfeodrippe/wally

2026-03-04T20:13:56.115799Z

So right now the company has 1 backend in PHP, that services through API calls to 2 frontends, one webapp and one react native mobile app. Playwright currently can do everything except mobile testing, which I think they're about to start doing with Appium. I thought about using Clojure for the API endpoints tests between the services and Playwright for browser, I was wondering if there was already some tooling for this in Clojure, that better Playwright

2026-03-04T20:14:42.532979Z

But I guess I'm fine with using plain Clojure with a test runner like LazyTest (which I haven't used yet) for the most part, and Playwright for the rest

seancorfield 2026-03-04T21:08:18.263009Z

#lazytest has its own channel, in case you need assistance there. #testing exists for general testing-related discussions. #etaoin has a channel too. I searched for references to playwright and it does seem to be quite popular. Looks like some folks are using it from the REPL, some from nbb...

Kakashi 2026-03-04T17:06:00.727939Z

I’m interested in clojure because I’m exploring functional programming seriously, and I like its Lisp philosophy and REPL-driven workflow I’ve mainly worked with Python before, and I want to deepen my understanding of immutable data structures and functional design

👋 12
👋🏼 3
maleghast 2026-03-04T20:24:18.847989Z

Have you looked at the channel here, called #clojure-camp ? Really that channel is a redirect to their home on Discord, but you might find it very helpful . Also, take a look at https://www.braveclojure.com/