From 964e595af26f29bced29217ba0ec7613acd9e1f4 Mon Sep 17 00:00:00 2001 From: kifir Date: Mon, 22 Apr 2024 20:38:24 +0300 Subject: [PATCH] enhance instruction for running single test --- unit_tests/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit_tests/readme.md b/unit_tests/readme.md index 1d5ecbb073..fa3608dd6c 100644 --- a/unit_tests/readme.md +++ b/unit_tests/readme.md @@ -3,8 +3,8 @@ See https://github.com/rusefi/rusefi/wiki/Dev-Quality-Control TL, DR: just follow [tests](tests) folder as examples. gcc/makefile/gtest 1. Run 'make' to build desktop binary. -1. Execute rusefi_test binary on your PC/Mac, it's expected to say SUCCESS and not fail :) Googletest will also print results summary. -1. To run only one test uncomment and modify [main.cpp](https://github.com/rusefi/rusefi/blob/master/unit_tests/main.cpp) line ``::testing::GTEST_FLAG(filter)`` +2. Execute rusefi_test binary on your PC/Mac, it's expected to say SUCCESS and not fail :) Googletest will also print results summary. +3. To run only one test use command line like ```build/rusefi_test --gtest_filter=*TEST_NAME*``` ~~uncomment and modify [main.cpp](https://github.com/rusefi/rusefi/blob/master/unit_tests/main.cpp) line ``::testing::GTEST_FLAG(filter)``~~ In this folder we have rusEFI unit tests using https://github.com/google/googletest