|
a |
|
b/test/README.md |
|
|
1 |
# Test |
|
|
2 |
|
|
|
3 |
This folder holds tests for the code in the `src/features/` directory, which implements the features used for Random Forest and BiLSTM methods. It also includes tests for the code in the `src/models/` directory, which contains the data models used for preprocessing and feature computation. The tests were written using [PyTest](https://docs.pytest.org/en/7.2.x/). |
|
|
4 |
|
|
|
5 |
|
|
|
6 |
## Execute tests |
|
|
7 |
|
|
|
8 |
To run all the tests, execute the following command from the **parent** directory: |
|
|
9 |
|
|
|
10 |
``` |
|
|
11 |
python -m pytest test/ |
|
|
12 |
``` |
|
|
13 |
|
|
|
14 |
To run a specific test or subgroup of tests, specify the path. For example, to run only the tests of the features code, execute: |
|
|
15 |
|
|
|
16 |
``` |
|
|
17 |
python -m pytest test/features/ |
|
|
18 |
``` |
|
|
19 |
|
|
|
20 |
And to run only the tests of the entity model: |
|
|
21 |
|
|
|
22 |
``` |
|
|
23 |
python -m pytest test/models/test_entity.py |
|
|
24 |
``` |