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

Convert e2e_exception_test to end to end test #1584

Merged
merged 3 commits into from
May 30, 2023

Conversation

rfdavid
Copy link
Collaborator

@rfdavid rfdavid commented May 29, 2023

This PR implements the following:

  • Adds support for -BEGIN_WRITE_TRANSACTION within the test file
  • Splits exception.test into multiple files
  • Raises an exception if the test file is invalid
  • Deletes e2e_exception_test.cpp file

@rfdavid rfdavid requested a review from ray6080 May 29, 2023 17:25
@rfdavid rfdavid self-assigned this May 29, 2023
@rfdavid rfdavid changed the title Convert exception to end to end test Convert e2e_exception_test to end to end test May 29, 2023
@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (bac02bf) 91.91% compared to head (64ce7fd) 91.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1584      +/-   ##
==========================================
- Coverage   91.91%   91.91%   -0.01%     
==========================================
  Files         703      703              
  Lines       25543    25544       +1     
==========================================
  Hits        23479    23479              
- Misses       2064     2065       +1     
Impacted Files Coverage Δ
src/include/common/exception.h 83.33% <0.00%> (-3.63%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -45,6 +45,8 @@ void parseAndRegisterTestGroup(const std::string& path) {
return new EndToEndReadTest(dataset, bufferPoolSize, std::move(testStatements));
});
}
} else {
throw Exception("Invalid test file");
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add the file path into the exception here?
Also, I would add a TestException class and throw TestException here. See common/exception.h.

* Added -BEGIN_WRITE_TRANSACTION
* Split exception.test into multiple files
* Raise exception when test file is invalid
* Removed cpp exception file
@rfdavid rfdavid merged commit 5fc4f24 into kuzudb:master May 30, 2023
7 of 8 checks passed
@rfdavid rfdavid deleted the convert_exception_test branch May 30, 2023 14:18
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

2 participants