<commit_before>include(CMakeToolsHelpers OPTIONAL)

project(unit-tests)

include_directories(
    ${unit-tests_SOURCE_DIR}
    ${gtest_SOURCE_DIR}/include
    ${gmock_SOURCE_DIR}/include
)

add_executable(unit-tests

    unit-tests.cpp
    unit-tests.h
    unit-tests_Namespace.h

    tests/unit-tests_MidiMessage.cpp
    tests/unit-tests_Settings.cpp
    tests/unit-tests_SysExCodec.cpp
    tests/unit-tests_SerialMock.cpp
    tests/unit-tests_MidiInput.cpp
    tests/unit-tests_MidiOutput.cpp
    tests/unit-tests_MidiThru.cpp
)

target_link_libraries(unit-tests
    gtest
    gmock
    midi
    test-mocks
)

add_test(unit-tests ${unit-tests_BINARY_DIR}/unit-tests --gtest_color=yes)<commit_msg>Added build & run target for unit tests.<commit_after>include(CMakeToolsHelpers OPTIONAL)

project(unit-tests)

include_directories(
    ${unit-tests_SOURCE_DIR}
    ${gtest_SOURCE_DIR}/include
    ${gmock_SOURCE_DIR}/include
)

add_executable(unit-tests

    unit-tests.cpp
    unit-tests.h
    unit-tests_Namespace.h

    tests/unit-tests_MidiMessage.cpp
    tests/unit-tests_Settings.cpp
    tests/unit-tests_SysExCodec.cpp
    tests/unit-tests_SerialMock.cpp
    tests/unit-tests_MidiInput.cpp
    tests/unit-tests_MidiOutput.cpp
    tests/unit-tests_MidiThru.cpp
)

target_link_libraries(unit-tests
    gtest
    gmock
    midi
    test-mocks
)

add_test(unit-tests ${unit-tests_BINARY_DIR}/unit-tests --gtest_color=yes)
add_custom_target(build-and-run-unit-tests
    COMMAND ${CMAKE_CTEST_COMMAND} -V
    DEPENDS unit-tests
)
{'fraction_non_alphanumeric': 0.0974493132766514, 'fraction_numerical': 0.0, 'mean_word_length': 3.8417721518987342, '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': '4203838', 'n_tokens_mistral': 563, 'n_tokens_neox': 560, 'n_words': 63}