Skip to content

Commit

Permalink
Merge pull request #1631 from rfdavid/e2e_tests_default_directory
Browse files Browse the repository at this point in the history
Add constant to test_files directory & fix directory
  • Loading branch information
mewim committed Jun 5, 2023
2 parents 7b46a07 + f024d0a commit 5849639
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/include/test_helper/test_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion test/runner/e2e_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 5849639

Please sign in to comment.