> For the complete documentation index, see [llms.txt](https://outline-1.gitbook.io/outline/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://outline-1.gitbook.io/outline/quality-and-testing/testing.md).

# Testing

Unit & Integration Tests

* Backend (Python)

  * All core functionality is covered by tests under service/tests/ using pytest.

  <figure><img src="https://3688977829-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQOJE6aViGSPYJ08xzzcA%2Fuploads%2FnbQMoIU8k2zS0fPr4B4e%2FCleanShot%202025-06-05%20at%2023.49.06%402x.png?alt=media&amp;token=54fc24b4-1a98-45ed-96f9-d03b4ca37b0a" alt=""><figcaption></figcaption></figure>

  * These tests validate:
    * Regex patterns (NAME\_PATTERN, TYPE\_PATTERN, CITYDATE\_PATTERN)
    * Paragraph extraction and styling (\_extract\_paragraphs, \_style\_special\_sections, etc.)
    * Front-matter and body-section detection (\_check\_front\_matter, \_check\_body\_sections)
    * Table of contents processing (\_extract\_toc, \_filter\_out\_toc\_entries)
    * Structure‐scoring logic (\_calculate\_structure\_metrics, \_generate\_recommendations)
    * Title-page and internal-page validation (\_validate\_naslovna\_stran, \_validate\_notranja\_stran)
* Frontend
  * No automated tests at this time. UI validation is performed manually in the browser.
