From b787d11020df38d209bebd70ec5716c01c95340b Mon Sep 17 00:00:00 2001 From: Aster Seker Date: Fri, 5 Sep 2025 01:08:27 +0300 Subject: [PATCH] docs(readme): add running tests section --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 1114e5b..1254ec8 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,23 @@ find_package(hmac_cpp CONFIG REQUIRED) target_link_libraries(my_app PRIVATE hmac_cpp::hmac_cpp) ``` +## 🧪 Running Tests + +Enable tests during configuration and run them with CTest: + +```bash +cmake -B build -DBUILD_TESTS=ON +cmake --build build +cd build +ctest --output-on-failure +``` + +Alternatively, use the helper script: + +```bash +scripts/run_tests.sh +``` + ## 📦 MQL5 Compatibility The repository includes `sha256.mqh`, `sha512.mqh`, `hmac.mqh`, and `hmac_utils.mqh` files, fully compatible with `MetaTrader 5`.