Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite transaction test #2053

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Rewrite transaction test #2053

merged 1 commit into from
Sep 19, 2023

Conversation

hououou
Copy link
Collaborator

@hououou hououou commented Sep 19, 2023

I have read and agree to the terms under CLA.md.
I have made the following changes:

  • Expand multiple connections to support default connection if not create connection previously
    -use case:
    -CREATE_CONNECTION conn_write
    -STATEMENT [conn_write] BEGIN WRITE TRANSACTION
    ---- ok
    -STATEMENT BEGIN READ TRANSACTION
    ---- ok

  • Expand the test framework to support batch statements; the file is loaded from KUZU_ROOT_PATH/test/statements
    -use case:
    -BATCH_STATEMENTS <FILE>:xx.cypher
    ---- ok

  • Rewrite the following tests to test_file

    • e2e_create_macro_test.cpp
    • e2e_create_rel_test.cpp
    • e2e_delete_create_transaction_test.cpp
    • e2e_delete_rel_test.cpp
    • e2e_update_rel.cpp

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (fea82f6) 90.23% compared to head (f792ea6) 90.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2053      +/-   ##
==========================================
+ Coverage   90.23%   90.24%   +0.01%     
==========================================
  Files         950      950              
  Lines       33776    33776              
==========================================
+ Hits        30478    30482       +4     
+ Misses       3298     3294       -4     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@andyfengHKU andyfengHKU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove all cpp tests that have been converted

test/test_files/transaction/create_rel/violate_error.test Outdated Show resolved Hide resolved
@@ -5,6 +5,7 @@
#include "common/exception/test.h"
#include "common/string_utils.h"
#include "spdlog/spdlog.h"
#include "test_helper/test_helper.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this must be a duplicate include

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it needs to be included

test/include/graph_test/graph_test.h Outdated Show resolved Hide resolved
test/test_runner/test_parser.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@ray6080 ray6080 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address comments and rebase before you merge.
Also, update our documentation on testing framework after you merge the PR.

@hououou hououou merged commit fe850a7 into kuzudb:master Sep 19, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants