From 393a30f801564f3c1eb95368d622a1f28851111a Mon Sep 17 00:00:00 2001 From: seanmil2 <225977587+seanmil2@users.noreply.github.com> Date: Mon, 11 Aug 2025 19:22:16 -0700 Subject: [PATCH] Document -ri cli arg --- README.md | 1 + src/CppUTest/CommandLineArguments.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 163ea219c..40c25df0e 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ $ vcpkg install cpputest (More information: https://github.com/microsoft/vcpkg) * `-v` verbose, print each test name as it runs * `-r#` repeat the tests some number of times, default is one, default if # is not specified is 2. This is handy if you are experiencing memory leaks related to statics and caches. * `-s#` random shuffle the test execution order. # is an integer used for seeding the random number generator. # is optional, and if omitted, the seed value is chosen automatically, which results in a different order every time. The seed value is printed to console to make it possible to reproduce a previously generated execution order. Handy for detecting problems related to dependencies between tests. +* `-ri` run ignored tests as if they are not ignored. * `-g` group only run test whose group contains the substring group * `-n` name only run test whose name contains the substring name * `-f` crash on fail, run the tests as normal but, when a test fails, crash rather than report the failure in the normal way diff --git a/src/CppUTest/CommandLineArguments.cpp b/src/CppUTest/CommandLineArguments.cpp index e3d1a8cbe..b18f936d8 100644 --- a/src/CppUTest/CommandLineArguments.cpp +++ b/src/CppUTest/CommandLineArguments.cpp @@ -155,6 +155,7 @@ const char* CommandLineArguments::help() const " -b - run the tests backwards, reversing the normal way\n" " -s [] - shuffle tests randomly (randomization seed is optional, must be greater than 0)\n" " -r[<#>] - repeat the tests <#> times (or twice if <#> is not specified)\n" + " -ri - run ignored tests as if they are not ignored\n" " -f - Cause the tests to crash on failure (to allow the test to be debugged if necessary)\n" " -e - do not rethrow unexpected exceptions on failure\n" " -ci - continuous integration mode (equivalent to -e)\n";