Add TestHarness infrastructure and initial smoke test

- Implemented `TestHarness` class for headless editor testing.
- Added utility methods for text insertion, editing, and querying.
- Introduced `test_daily_driver_harness` for verifying basic text buffer operations.
- Updated CMake to include the new test files.
This commit is contained in:
2026-02-10 23:34:01 -08:00
parent cc8df36bdf
commit 15b350bfaa
3 changed files with 152 additions and 0 deletions

View File

@@ -298,6 +298,8 @@ if (BUILD_TESTS)
add_executable(kte_tests
tests/TestRunner.cc
tests/Test.h
tests/TestHarness.h
tests/test_daily_driver_harness.cc
tests/test_buffer_io.cc
tests/test_piece_table.cc
tests/test_search.cc