1+ SPDX-FileCopyrightText: 2026 PyThaiNLP Project
2+ SPDX-FileType: DOCUMENTATION
3+ SPDX-License-Identifier: Apache-2.0
4+ ---
5+
16# Test suites and execution
27
38To run a test suite, run:
@@ -155,7 +160,6 @@ By separating tests by dependency group, we can:
155160- Requires: Internet connection, may involve large downloads
156161- Test case class suffix: ` TestCaseN `
157162
158-
159163## Robustness tests (test_robustness.py)
160164
161165A comprehensive test suite within core tests that tests edge cases important
@@ -169,3 +173,24 @@ for real-world usage:
169173- Thai-specific edge cases with combining characters and mixed scripts
170174- Multi-engine robustness testing across all core tokenization engines
171175- Very long strings that can cause performance issues (issue #893 )
176+
177+ ## Corpus test (corpus/)
178+
179+ A separate test suite that verifies the integrity, format, parseability,
180+ and catalog functionality of corpus in PyThaiNLP.
181+
182+ These tests are separate from regular unit tests because they test actual
183+ file loading and parsing (not mocked), require network access, and
184+ can be resource intensive.
185+
186+ For detailed information about corpus test, see:
187+ [ tests/corpus/README.md] ( corpus/README.md )
188+
189+ The corpus test is triggered automatically via GitHub Actions
190+ when changes are made to ` pythainlp/corpus/** ` or ` tests/corpus/** ` .
191+
192+ Run corpus test:
193+
194+ ``` shell
195+ python -m unittest tests.corpus
196+ ```
0 commit comments