pre-commit-hooks/tests/README.md
2017-07-05 21:44:40 +02:00

24 lines
576 B
Markdown

Testing
=======
Installing the test environment
-------------------------------
### Debian-based distributions
```shell-session
$ sudo apt install pypy python-tox
```
Running the tests
-----------------
```shell-session
$ make test
```
If the tests failed whereas [the ones from the last tag](https://travis-ci.org/pre-commit/pre-commit-hooks) did not, your Git configuration might interfere with `pre-commit-hooks`. In this case, you can ignore your current Git configuration by setting a temporary environment variable:
```shell-session
$ env HOME=/tmp make test
```