<commit_before>include(ECMMarkAsTest)

set(krossqtstest_SRCS main.cpp)
add_executable(krossqtstest qts.cpp)
ecm_mark_as_test(krossqtstest)
target_link_libraries(krossqtstest
   krossqtsplugin
   KF5::KrossCore
   Qt5::Script
   KF5::I18n
   Qt5::Widgets
)

add_test(krossqtstest-test-es krossqtstest ${CMAKE_CURRENT_SOURCE_DIR}/qtstest.es)

#set(krosstest_SRCS
#   testobject.cpp
#   main.cpp )


#add_executable(krosstest ${krosstest_SRCS})
#target_link_libraries(krosstest KF5::KrossCore KF5::CoreAddons KF5::ConfigCore Qt5::Script Qt5::Widgets Qt5::Xml)

#add_test(kross-guiform-py krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiform.py)
#add_test(kross-guiform-rb krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiform.rb)
#add_test(kross-guiqt-py krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiqt.py)
#add_test(kross-guiqt-rb krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiqt.rb)
#add_test(kross-guitk-py krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguitk.py)
#add_test(kross-test-py krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testkross.py)
#add_test(kross-unittest-es krosstest ${CMAKE_CURRENT_SOURCE_DIR}/unittest.es)
#add_test(kross-unittest-py krosstest ${CMAKE_CURRENT_SOURCE_DIR}/unittest.py)
#add_test(kross-unittest-rb krosstest ${CMAKE_CURRENT_SOURCE_DIR}/unittest.rb)

# UI files have no interpreter
# add_test(kross-guiform-ui krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiform.ui)
<commit_msg>fix add_test call so that actual target is used as executable<commit_after>include(ECMMarkAsTest)

set(krossqtstest_SRCS main.cpp)
add_executable(krossqtstest qts.cpp)
ecm_mark_as_test(krossqtstest)
target_link_libraries(krossqtstest
   krossqtsplugin
   KF5::KrossCore
   Qt5::Script
   KF5::I18n
   Qt5::Widgets
)

add_test(NAME krossqtstest-test-es COMMAND krossqtstest ${CMAKE_CURRENT_SOURCE_DIR}/qtstest.es)

#set(krosstest_SRCS
#   testobject.cpp
#   main.cpp )


#add_executable(krosstest ${krosstest_SRCS})
#target_link_libraries(krosstest KF5::KrossCore KF5::CoreAddons KF5::ConfigCore Qt5::Script Qt5::Widgets Qt5::Xml)

#add_test(NAME kross-guiform-py COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiform.py)
#add_test(NAME kross-guiform-rb COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiform.rb)
#add_test(NAME kross-guiqt-py COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiqt.py)
#add_test(NAME kross-guiqt-rb COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiqt.rb)
#add_test(NAME kross-guitk-py COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguitk.py)
#add_test(NAME kross-test-py COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testkross.py)
#add_test(NAME kross-unittest-es COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/unittest.es)
#add_test(NAME kross-unittest-py COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/unittest.py)
#add_test(NAME kross-unittest-rb COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/unittest.rb)

# UI files have no interpreter
# add_test(NAME kross-guiform-ui COMMAND krosstest ${CMAKE_CURRENT_SOURCE_DIR}/testguiform.ui)

{'fraction_non_alphanumeric': 0.10838101649276338, 'fraction_numerical': 0.008078088185796028, 'mean_word_length': 8.375394321766562, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '204368', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1204, 'n_words': 156}