File size: 1,391 Bytes
e4b9a7b | 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 34 35 36 37 | # Test cases
Tests are categorized into three groups: core, compact, and extra.
## Core Tests (test_*.py)
- Run `unittest tests.core`
- Focus on core functionalities.
- Do not rely on external dependencies beyond the standard library,
except for `requests` which is used for corpus downloading.
- Test with all officially supported Python versions
(currently 3.9, 3.10, 3.11, 3.12, and 3.13).
## Compact Tests (testc_*.py)
- Run `unittest tests.compact`
- Test a limited set of functionalities that rely on a stable and small subset
of optional dependencies specified in `requirements.txt`.
- These dependencies are `PyYAML`, `nlpo3`, `numpy`, `pyicu`,
`python-crfsuite`, and `requests`.
- Test with the latest two stable Python versions.
## Extra Tests (testx_*.py)
- Run `unittest tests.extra`
- Explore functionalities that rely on optional dependencies specified in the
`extras` section of `setup.py`.
- These dependencies might include libraries like `gensim`, `tltk`, or `torch`.
- Due to dependency complexities, these functionalities are not part of the
automated test suite and will not be tested in the CI/CD pipeline.
## Default Test Suite
The default test suite, triggered by the `unittest tests` command, encompasses
all test cases within the `tests.core` and `tests.compact` packages.
This suite is defined within the `__init__.py` file in this directory.
|