pre-commit-rust icon indicating copy to clipboard operation
pre-commit-rust copied to clipboard

feat request: hook for running rust tests

Open Business-Wizard opened this issue 2 years ago • 2 comments

What:

  • add cargo test hook, that runs test suite of Rust package.

Why:

  • support TDD workflows, provide easy hook for teams to add test runs to their pre-commit checks.
  • reduce need for packages to use a local hook implementation/workaround

Context:

A standard practice for my projects is to have tests run for each commit and push. My impression of this repo is the go-to for standard Rust hooks including basic cargo functionality. However, I see cargo test is not yet implemented -> feature request! :blush:

Business-Wizard avatar Aug 31 '23 02:08 Business-Wizard

It appears this repo has not been updated in ~3 years. Is it possible one of the contributors can lend their perspective on how to proceed? I am open to assisting with implementation, if there are maintainers who can help when the PR is ready for review.

Business-Wizard avatar Aug 31 '23 02:08 Business-Wizard

It appears this repo has not been updated in ~3 years. Is it possible one of the contributors can lend their perspective on how to proceed? I am open to assisting with implementation, if there are maintainers who can help when the PR is ready for review.

You can use my frok linked here: https://github.com/FeryET/pre-commit-rust

FeryET avatar Sep 29 '23 09:09 FeryET