4paradigm / 4paradigm/OpenMLDB
refactor yaml sql test case
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 331
- Avg merge
- 12d 12h
- Merged PRs (30d)
- 1
Description
**Is your feature request related to a problem? Please describe.**
there is `cases/plan/error_unsupport_sql.yaml`, but might better to put some of those case together with the happy ones.
**Describe the solution you'd like**
- add yaml syntax doc
- support fail assert
- support which phase to fail so e.g `runner_test` can filter on this. ( refactor over `mode` key ? )
- assert fail message
- test code need tweaks
**Additional context**
- backward compatibility
Contributor guide
Research direction
Look at the test file `cases/plan/error_unsupport_sql.yaml` to understand its current structure. Examine how SQL test cases are run, likely in `runner_test` or similar test suites. The goal is to merge error cases with happy-path cases by adding fail assertions and phase specifications, while maintaining backward compatibility. Check for existing documentation on the YAML syntax to update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- yaml
- Domain
- testing
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100