mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-05-28 03:10:28 -04:00
chore: Add unit tests for DocumentContextReader The tests are based on GTest like some tests in Qt Creator itself, which makes it easy to run as full Qt Creator does not need to be started.
15 lines
278 B
CMake
15 lines
278 B
CMake
add_executable(QodeAssistTest
|
|
DocumentContextReaderTest.cpp
|
|
unittest_main.cpp
|
|
)
|
|
|
|
target_link_libraries(QodeAssistTest PRIVATE
|
|
Qt::Core
|
|
GTest::GTest
|
|
GTest::Main
|
|
QtCreator::LanguageClient
|
|
Context
|
|
)
|
|
|
|
add_test(NAME QodeAssistTest COMMAND QodeAssistTest)
|