Refactor tests and benchmarks (#4700)

This commit is contained in:
nerix
2023-06-24 15:03:27 +02:00
committed by GitHub
parent 5d3e5d9312
commit b9934a4532
8 changed files with 109 additions and 179 deletions
+1 -7
View File
@@ -60,10 +60,4 @@ if(CHATTERINO_TEST_USE_PUBLIC_HTTPBIN)
target_compile_definitions(${PROJECT_NAME} PRIVATE CHATTERINO_TEST_USE_PUBLIC_HTTPBIN)
endif()
# gtest_add_tests manages to discover the tests because it looks through the source files
# HOWEVER, it fails to run, because we have some bug that causes the QApplication exit to stall when no network requests have been made.
# ctest runs each test individually, so for now we require that testers just run the ./bin/chatterino-test binary without any filters applied
# gtest_add_tests(
# TARGET ${PROJECT_NAME}
# SOURCES ${test_SOURCES}
# )
gtest_discover_tests(${PROJECT_NAME})