Hacker News new | ask | show | jobs
by tantalor 1256 days ago
> update with a flag

Yes this is right level of automation, not whatever this article is going on about with the editor integration. Yuck.

1 comments

The open source use pattern for expect tests in OCaml (via dune) is exactly as you describe (see https://dune.readthedocs.io/en/stable/tests.html) - you run the tests with `--auto-promote` to tell it to update. The editor integration is a very simple keybinding on top of more generic tooling.