strongduanmu commented on issue #29188:
URL: 
https://github.com/apache/shardingsphere/issues/29188#issuecomment-1918948674

   > Hi @strongduanmu
   > 
   > Is there a possibility to run just 1-2 test case instead of +500 each time?
   
   You can control case by modifying InternalSQLParserIT.
   
   ```java
   public abstract class InternalSQLParserIT {
       
       private static final SQLCases SQL_CASES = 
SQLCasesRegistry.getInstance().getCases();
       
       private static final SQLParserTestCases SQL_PARSER_TEST_CASES = 
SQLParserTestCasesRegistry.getInstance().getCases();
       
       @ParameterizedTest(name = "{0} ({1}) -> {2}")
       @ArgumentsSource(TestCaseArgumentsProvider.class)
       void assertSupportedSQL(final String sqlCaseId, final SQLCaseType 
sqlCaseType, final String databaseType) {
           if (!sqlCaseId.equals("xxx")) {
               return;
           }
           String sql = SQL_CASES.getSQL(sqlCaseId, sqlCaseType, 
SQL_PARSER_TEST_CASES.get(sqlCaseId).getParameters());
           SQLStatement actual = parseSQLStatement("H2".equals(databaseType) ? 
"MySQL" : databaseType, sql);
           SQLParserTestCase expected = SQL_PARSER_TEST_CASES.get(sqlCaseId);
           SQLStatementAssert.assertIs(new SQLCaseAssertContext(sqlCaseId, sql, 
expected.getParameters(), sqlCaseType), actual, expected);
       }
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to