<commit_before># Group all test file names in apropriate variables
file(GLOB unit_tests_src "test/unit/*.unit.c")
file(GLOB integration_tests_src "test/integration/*.int.c")

# Add main executables for tests
add_executable(unit_tests EXCLUDE_FROM_ALL "test/unit/main.c" ${unit_tests_src})
add_executable(integration_tests EXCLUDE_FROM_ALL "test/integration/main.c" ${integration_tests_src})
target_include_directories(unit_tests PUBLIC "src" "test")
target_include_directories(integration_tests PUBLIC "src" "test")

target_link_libraries(integration_tests libmbc)

# Add mbc_ prefix to executables
set_target_properties(unit_tests PROPERTIES OUTPUT_NAME mbc_unit_tests)
set_target_properties(integration_tests PROPERTIES OUTPUT_NAME mbc_integration_tests)

add_custom_target(
	mbc_test
	COMMAND ./mbc_unit_tests
	COMMAND ./mbc_integration_tests
	DEPENDS mbc unit_tests integration_tests
)
<commit_msg>Added cmake comment on 'mbc_test' target.<commit_after># Group all test file names in apropriate variables
file(GLOB unit_tests_src "test/unit/*.unit.c")
file(GLOB integration_tests_src "test/integration/*.int.c")

# Add main executables for tests
add_executable(unit_tests EXCLUDE_FROM_ALL "test/unit/main.c" ${unit_tests_src})
add_executable(integration_tests EXCLUDE_FROM_ALL "test/integration/main.c" ${integration_tests_src})
target_include_directories(unit_tests PUBLIC "src" "test")
target_include_directories(integration_tests PUBLIC "src" "test")

target_link_libraries(integration_tests libmbc)

# Add mbc_ prefix to executables
set_target_properties(unit_tests PROPERTIES OUTPUT_NAME mbc_unit_tests)
set_target_properties(integration_tests PROPERTIES OUTPUT_NAME mbc_integration_tests)

add_custom_target(
	mbc_test
	COMMAND ./mbc_unit_tests
	COMMAND ./mbc_integration_tests
	DEPENDS mbc unit_tests integration_tests
	COMMENT "Running test..."
)

{'fraction_non_alphanumeric': 0.07746100053792361, 'fraction_numerical': 0.0, 'mean_word_length': 8.587628865979381, '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': '2182767', 'n_tokens_mistral': 632, 'n_tokens_neox': 601, 'n_words': 130}