aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing
diff options
context:
space:
mode:
authornkozlovskiy <nmk@ydb.tech>2023-05-26 19:08:57 +0300
committernkozlovskiy <nmk@ydb.tech>2023-05-26 19:08:57 +0300
commit08ab69adc6a4958ba226238d3a2f8213bcdbec3d (patch)
tree178dd471f30f83fb3dfdf11104fb6fb0ee4a56f7 /library/cpp/testing
parente3e0373359a0ec0b7d3b4fd2fda3b4248e771ebb (diff)
downloadydb-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.cpp2
-rw-r--r--library/cpp/testing/unittest/junit.h2
-rw-r--r--library/cpp/testing/unittest/utmain.cpp8
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);