diff options
author | nkozlovskiy <nmk@ydb.tech> | 2023-05-26 19:08:57 +0300 |
---|---|---|
committer | nkozlovskiy <nmk@ydb.tech> | 2023-05-26 19:08:57 +0300 |
commit | 08ab69adc6a4958ba226238d3a2f8213bcdbec3d (patch) | |
tree | 178dd471f30f83fb3dfdf11104fb6fb0ee4a56f7 /library/cpp/testing | |
parent | e3e0373359a0ec0b7d3b4fd2fda3b4248e771ebb (diff) | |
download | ydb-08ab69adc6a4958ba226238d3a2f8213bcdbec3d.tar.gz |
rename Y_TEST_FILTER option to Y_UNITTEST_FILTER_FILE
rename Y_TEST_FILTER to Y_UNITTEST_FILTER_FILE, also --test-filter to --filter-file
Diffstat (limited to 'library/cpp/testing')
-rw-r--r-- | library/cpp/testing/unittest/junit.cpp | 2 | ||||
-rw-r--r-- | library/cpp/testing/unittest/junit.h | 2 | ||||
-rw-r--r-- | library/cpp/testing/unittest/utmain.cpp | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/testing/unittest/junit.cpp b/library/cpp/testing/unittest/junit.cpp index 41e571d11f..6d80a204ff 100644 --- a/library/cpp/testing/unittest/junit.cpp +++ b/library/cpp/testing/unittest/junit.cpp @@ -24,7 +24,7 @@ namespace NUnitTest { extern const TString Y_UNITTEST_OUTPUT_CMDLINE_OPTION = "Y_UNITTEST_OUTPUT"; -extern const TString Y_UNITTEST_TEST_FILTER_OPTION = "Y_TEST_FILTER"; +extern const TString Y_UNITTEST_TEST_FILTER_FILE_OPTION = "Y_UNITTEST_FILTER_FILE"; static bool IsAllowedInXml(wchar32 c) { // https://en.wikipedia.org/wiki/Valid_characters_in_XML diff --git a/library/cpp/testing/unittest/junit.h b/library/cpp/testing/unittest/junit.h index 23cb68ee71..1797055877 100644 --- a/library/cpp/testing/unittest/junit.h +++ b/library/cpp/testing/unittest/junit.h @@ -7,7 +7,7 @@ namespace NUnitTest { extern const TString Y_UNITTEST_OUTPUT_CMDLINE_OPTION; -extern const TString Y_UNITTEST_TEST_FILTER_OPTION; +extern const TString Y_UNITTEST_TEST_FILTER_FILE_OPTION; class TJUnitProcessor : public ITestSuiteProcessor { struct TFailure { diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp index 53797b23d2..e5f073d529 100644 --- a/library/cpp/testing/unittest/utmain.cpp +++ b/library/cpp/testing/unittest/utmain.cpp @@ -543,7 +543,7 @@ private: .SetLatency(1); PushDownEnvVar(&options, Y_UNITTEST_OUTPUT_CMDLINE_OPTION); - PushDownEnvVar(&options, Y_UNITTEST_TEST_FILTER_OPTION); + PushDownEnvVar(&options, Y_UNITTEST_TEST_FILTER_FILE_OPTION); PushDownEnvVar(&options, "TMPDIR"); TShellCommand cmd(AppName, args, options); @@ -693,7 +693,7 @@ static int DoUsage(const char* progname) { << " --fork-tests run each test in a separate process\n" << " --trace-path path to the trace file to be generated\n" << " --trace-path-append path to the trace file to be appended\n" - << " --test-filter path to the test filters ([+|-]test) file (" << Y_UNITTEST_TEST_FILTER_OPTION << ")\n"; + << " --filter-file path to the test filters ([+|-]test) file (" << Y_UNITTEST_TEST_FILTER_FILE_OPTION << ")\n"; return 0; } @@ -759,7 +759,7 @@ int NUnitTest::RunMain(int argc, char** argv) { // load filters from environment variable - TString filterFn = GetEnv(Y_UNITTEST_TEST_FILTER_OPTION); + TString filterFn = GetEnv(Y_UNITTEST_TEST_FILTER_FILE_OPTION); if (!filterFn.empty()) { processor.FilterFromFile(filterFn); } @@ -832,7 +832,7 @@ int NUnitTest::RunMain(int argc, char** argv) { traceProcessors.push_back(std::make_shared<TJUnitProcessor>(TString(fileName), argv[0])); } hasJUnitProcessor = true; - } else if (strcmp(name, "--test-filter") == 0) { + } else if (strcmp(name, "--filter-file") == 0) { ++i; TString filename(argv[i]); processor.FilterFromFile(filename); |