.. Copyright (c) 2025 Tobias Erbsland - Erbsland DEV. https://erbsland.dev SPDX-License-Identifier: Apache-2.0 .. _test-file-structure: .. index:: single: Test File Structure =================== Test File Structure =================== All test files are organized in a dedicated GitHub repository: ``erbsland-lang-config-tests``. You can easily include this repository as a submodule in your project to integrate the tests. .. button-link:: https://github.com/erbsland-dev/erbsland-lang-config-tests.git :color: primary :align: center GitHub Repository with the Test Files → The ``tests`` directory contains file-based tests for the *Erbsland Configuration Language (ELCL)*. These tests ensure that your parser or syntax highlighter correctly implements the language. Each test is designed for readability and easy integration into your unit tests. You do not need to build an entire testing framework from scratch. Instead, you only need to create a minimal test adapter for your parser. Our test system will execute all tests and verify your parser's output. For more information, see :ref:`test-adapter`. .. design-rationale:: The test file structure is deliberately simple and flexible. Test characteristics are embedded directly in filenames and paths, avoiding the need for external test libraries and ensuring broad compatibility. The clear directory and naming conventions also make test data handling straightforward and consistent. By using static, file-based tests instead of dynamic test case generators, this system promotes better platform compatibility. These tests can be run across different systems without requiring extensive setup or specialized tools. Test Naming Convention ---------------------- .. code-block:: text 0120-FAIL-dec_underscore.elcl Each test file follows a specific naming convention: ``NNNN--