From f024d0a35130d8223c14d56cee1007f0ad67f193 Mon Sep 17 00:00:00 2001 From: rfdavid Date: Mon, 5 Jun 2023 10:11:01 -0400 Subject: [PATCH] Add constant to test_files directory --- test/include/test_helper/test_helper.h | 1 + test/runner/e2e_test.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/include/test_helper/test_helper.h b/test/include/test_helper/test_helper.h index 8487ef1fc9..c4feb55c6d 100644 --- a/test/include/test_helper/test_helper.h +++ b/test/include/test_helper/test_helper.h @@ -37,6 +37,7 @@ class TestHelper { static void executeScript(const std::string& path, Connection& conn); + static constexpr char E2E_TEST_FILES_DIRECTORY[] = "test/test_files"; static constexpr char SCHEMA_FILE_NAME[] = "schema.cypher"; static constexpr char COPY_FILE_NAME[] = "copy.cypher"; diff --git a/test/runner/e2e_test.cpp b/test/runner/e2e_test.cpp index d939229cdf..dfe4d95eed 100644 --- a/test/runner/e2e_test.cpp +++ b/test/runner/e2e_test.cpp @@ -64,7 +64,7 @@ void scanTestFiles(const std::string& path) { int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); - std::string path = "test/test_files/tinysnb/function"; + std::string path = TestHelper::E2E_TEST_FILES_DIRECTORY; if (argc > 1) { path = path + "/" + argv[1]; }