-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
planner: split test data from test cases #12091
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12091 +/- ##
===========================================
Coverage 81.4675% 81.4675%
===========================================
Files 449 449
Lines 96080 96080
===========================================
Hits 78274 78274
Misses 12222 12222
Partials 5584 5584 |
{ | ||
"name": "TestIndexHint", | ||
"cases": [ | ||
// simple case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the json
file support comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, so before parse, the comment will be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Your auto merge job has been accepted, waiting for #12109 |
/run-all-tests |
@lamxTyler merge failed. |
/run-unit-test |
What problem does this PR solve?
When there is a change that affects lots of test cases in planner, it is very diffcult to update the test cases.
What is changed and how it works?
Split test data from test logic so we can generate test cases by one command:
go test --record
.This PR uses
TestIndexHint
as a sample. We can split more tests once the test framework is settled.Check List
Tests
Code changes
Side effects
Related changes
Release note