You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/02/25 04:55:20 UTC
[GitHub] [shardingsphere] tristaZero opened a new issue #9498: Add `scenarios-type` parameter to control the running case number for integration test engin
tristaZero opened a new issue #9498:
URL: https://github.com/apache/shardingsphere/issues/9498
Different databases have their specific SQLs. Therefore we have `data-types` to distinguish test SQLS. Similarly, we still need `scenarios-type` to pick up SQLs running for some specific scenarios.
For instance,
```
<test-case sql="SELECT * FROM (SELECT TOP (?) row_number() OVER (ORDER BY i.item_id DESC) AS rownum_, i.item_id, o.order_id as order_id, o.status as status, o.user_id as user_id FROM t_order o JOIN t_order_item i ON o.user_id = i.user_id AND o.order_id = i.order_id WHERE o.user_id IN (?, ?) AND o.order_id BETWEEN ? AND ?) AS row_" db-types="SQLServer">
<assertion parameters="2:int, 10:int, 19:int, 1000:int, 1909:int" expected-data-file="select_pagination_with_row_count.xml" />
</test-case>
```
Please imitate `data-types` to implement `scenarios-type` in `IntegrationTestCase.class`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero commented on issue #9498: Add `scenarios-type` parameter to control the running case number for integration test engin
Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #9498:
URL: https://github.com/apache/shardingsphere/issues/9498#issuecomment-787748755
Done, thanks for your effort @JiekerTime
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] JiekerTime commented on issue #9498: Add `scenarios-type` parameter to control the running case number for integration test engin
Posted by GitBox <gi...@apache.org>.
JiekerTime commented on issue #9498:
URL: https://github.com/apache/shardingsphere/issues/9498#issuecomment-785613356
I will think about how to add this feature perfectly!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] tristaZero closed issue #9498: Add `scenarios-type` parameter to control the running case number for integration test engin
Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #9498:
URL: https://github.com/apache/shardingsphere/issues/9498
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org