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
Parametermized tests for Rewrite module. #1548
Comments
terrymanu
changed the title
Parameter tests for Rewrite module.
Parametermized tests for Rewrite module.
Dec 20, 2018
After rewrite module refactor already finished, we can redefine tasks for rewrite test module.
|
Parametermized test's xml definition: <rewrite-assertions yaml-rule="xxx.yaml">
<rewrite-assertion sql-case-id="xxx" parameters="xx, xx" rewrited-sql="xxx" rewrited-parameters="xx, xx" />
</rewrite-assertions> Attributes |
finally, the xml definition is: <rewrite-assertions yaml-rule="xxx.yaml">
<rewrite-assertion id="xxx" db-type="xxx">
<input sql="xxx" parameters="x, x" />
<output sql="xxx" parameters="x, x" />
</rewrite-assertion>
</rewrite-assertions> |
This was referenced Oct 13, 2019
This was referenced Oct 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We will add parameter tests for rewrite module to ensure the rewriting correct and improve the test coverge.
ParseResult.xml --->ParseResultEntity-->SQLStatemtent-->Optimize()-->OptimizedResult.xml-->ShardingConditions
ShardingConditions+OptimizedResult.xml-->
ShardingConditions+SQLStatemtent-->SQLRewriteEngine-->Rewrite()-->SQLBuilder-->Actual SQLs
RewriteResult.xml-->Excpected SQLs
Assert(Actual SQLs, Excpected SQLs)-->AssertMessage-->Output.
The text was updated successfully, but these errors were encountered: