aboutsummaryrefslogtreecommitdiff
path: root/docs/contributor_guide/unitary_test.md
blob: 42cf24cf06135c8b6f2866b5ddaf5250b4f4fe8e (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
33
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 into ArGaze root 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.*