4 ms·
pre-commit more or less does this. When you install locally as a git hook it will only test on changes that are being committed.
by i13e 3y ago
pre-commit more or less does this. When you install locally as a git hook it will only test on changes that are being committed.
- KeepFlying 3y agoI've always liked the theory of this but not the implementation. I'm a big fan of squash merges so my branches are a mess of commi that each may not even build let alone pass tests. If I had to run tests each commit it would slow things down significantly for little benefit. I wish it was more nuanced
- ForkMeOnTinder 3y agoI use pre-commit and have a git alias for those wip commits. cmnv = commit --no-verify
- Jackevansevo 3y agoBut is it smart enough to go and test transient deps of code you've made changes to? I've been impressed by Pants (Python build tooling) which manages this really well https://www.pantsbuild.org/docs/advanced-target-selection#running-over-changed-files-with---changed-since https://www.pantsbuild.org/docs/advanced-target-selection#ru...