aboutsummaryrefslogtreecommitdiff
path: root/docs/contributor_guide/unitary_test.md
blob: 36010bfc1e3fdcf7d23fca65aa0ec36ed00f57a8 (plain)
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
27
28
29
30
31
32
Unitary test
============

ArGaze package unitary tests are based on [unittest](https://docs.python.org/fr/3.10/library/unittest.html) module. Test files tree structure is mirroring the file tree structure of src/argaze folder.

!!! note

    *Consider that all inline commands below have to be executed at the root of ArGaze package folder.*


To run all unitary tests:

```shell
python -m unittest discover ./src/argaze.test "*.py"
```

To run only submodule unitary tests:

```shell
python -m unittest discover ./src/argaze.test/SUBMODULE "*.py"
```

To run only a single unitary test file from a submodule:

```shell
python -m unittest discover ./src/argaze.test/SUBMODULE/ TEST_FILE.py
```

!!! note

    **Verbose mode**  
    *Use -v option to get more details.*