mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-23 23:44:55 -04:00
chore: Add unit tests for DocumentContextReader (#90)
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.
This commit is contained in:
committed by
GitHub
parent
bcf7b6c226
commit
247256d4a4
14
test/CMakeLists.txt
Normal file
14
test/CMakeLists.txt
Normal file
@ -0,0 +1,14 @@
|
||||
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)
|
Reference in New Issue
Block a user