File: Testing.md

package info (click to toggle)
dfvfs 20240505-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 475,508 kB
  • sloc: python: 36,533; vhdl: 1,922; sh: 448; xml: 52; makefile: 16
file content (26 lines) | stat: -rw-r--r-- 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Testing

## Unit tests

dfVFS comes with unit tests tests. These tests are stored in the `tests`
subdirectory.

To run the unit tests:

```bash
PYTHONPATH=. python run_tests.py
```

Or on Windows:

```bash
set PYTHONPATH=.
C:\Python3\python.exe run_tests.py
```

If you're running git on Windows make sure you have autocrlf turned off
otherwise the tests using the test text files will fail.

```bash
git config --global core.autocrlf false
```