| 1 |
# Testing |
| 2 |
|
| 3 |
## Unit tests |
| 4 |
|
| 5 |
The dfwinreg package comes with automated tests. These tests are stored in the |
| 6 |
`tests` subdirectory. |
| 7 |
|
| 8 |
To run the automated tests: |
| 9 |
|
| 10 |
```bash |
| 11 |
PYTHONPATH=. python run_tests.py |
| 12 |
``` |
| 13 |
|
| 14 |
Or on Windows: |
| 15 |
|
| 16 |
```bash |
| 17 |
set PYTHONPATH=. |
| 18 |
C:\Python3\python.exe run_tests.py |
| 19 |
``` |
| 20 |
|
| 21 |
If you're running git on Windows make sure you have autocrlf turned off |
| 22 |
otherwise the tests using the test text files will fail. |
| 23 |
|
| 24 |
```bash |
| 25 |
git config --global core.autocrlf false |
| 26 |
``` |