Tests are categorized into three groups: core, compact, and extra.
- 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).
- 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
, andrequests
. - Test with the latest two stable Python versions.
- Run
unittest tests.extra
- Explore functionalities that rely on optional dependencies specified in the
extras
section ofsetup.py
. - These dependencies might include libraries like
gensim
,tltk
, ortorch
. - Due to dependency complexities, these functionalities are not part of the automated test suite and will not be tested in the CI/CD pipeline.
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.