In this documents, we assume executing commands in tests directory not in the project root.
It are run using CTest at compile time. This is based on branch coverage.
$ cmake -B build_msvc -G "Visual Studio 17 2022" unit
$ cmake --build build_msvc
$ ctest -C Debug --test-dir build_msvc --output-on-failure
$ cmake -B build_mingw -G "MinGW Makefiles" unit
$ cmake --build build_mingw
$ ctest -C Debug --test-dir build_mingw --output-on-failure
This tool uses to test for integration. Specify the path of executable file after built win-vind, and then this tools generate proper keystrokes to check the win-vind behavior. However, It enumlates user inputs actually, so may destroy other applications that are currently running. For this, it should be run in a virtual environment such as VirtualBox.
The runtime test is implemented in python scripts.
$ python runtime/test.py "../bin_64/win-vind/win-vind.exe"