mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
| .. | ||
| bin | ||
| git-abort.bats | ||
| git-alias.bats | ||
| git-archive-file.bats | ||
| git-authors.bats | ||
| git-browse-ci.bats | ||
| git-browse.bats | ||
| git-continue.bats | ||
| git-extra-utility.bats | ||
| git-mr.bats | ||
| git-scp.bats | ||
| is-git-repo.bats | ||
| README.md | ||
| test_util.sh | ||
Testing
Tests are written in Bats so coverage can be calculated for shell commands.
Bats Testing
We require a somewhat recent version of Bats. Version v1.8.1 is tested in CI. Once it is installed, the tests can be executed like so:
bats ./tests
We highly recommend adding Bats tests for new features and fixes.
Code Coverage
Coverage can be calculated with bashcov like so:
bashcov -- bats ./tests
By default, the report will be generated in ./coverage/index.html.