logoalt Hacker News

sh3rl0cktoday at 3:26 AM4 repliesview on HN

Beyond Linting and Shell Exec (gh, Playwright etc), what other additional tools did you find useful for your tasks, HN?!

Most of my feedback that can be automated is done either by this or by fuzzing. Would love to hear about other optimisations y'all have found.


Replies

__MatrixMan__today at 5:15 AM

I like to generate clients with type hints based on an openapi spec so that if the spec changes, the clients get regenerated, and then the type checker squawks if any code is impacted by the spec change.

There are also openapi spec validators to catch spec problems up front.

And you can use contract testing (e.g. https://docs.pact.io/) to replay your client tests (with a mocked server) against the server (with mocked clients)--never having to actually spin up both a the same time.

Together this creates a pretty widespread set of correctness checks that generate feedback at multiple points.

It's maybe overkill for the project I'm using it on, but as a set of AI handcuffs I like it quite a bit.

alphax314today at 4:13 AM

Running all shorts of tests (e2e, API, unit) and for web apps using the claude extension with chrome to trigger web ui actions and observe the result. The last part helps a lot with frontend development.

esafaktoday at 6:13 AM

I've started incorporating checks into commit hooks, shifting testing left. https://hk.jdx.dev/

sigseg1vtoday at 3:42 AM

Teaching them skills for running API and e2e tests and how to filter those tests so it can check if what it did works quickly.