This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 618eb06a101 Enable parallel execution for ExternalSQLParserIT (#26837)
618eb06a101 is described below

commit 618eb06a101e2681c88a08a160540f598752d9b6
Author: 吴伟杰 <[email protected]>
AuthorDate: Sat Jul 8 16:20:42 2023 +0800

    Enable parallel execution for ExternalSQLParserIT (#26837)
---
 .../it/sql/parser/external/ExternalSQLParserIT.java   |  3 +++
 .../src/main/resources/junit-platform.properties      | 19 +++++++++++++++++++
 2 files changed, 22 insertions(+)

diff --git 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
index fb837fd7b75..fea86c0141b 100644
--- 
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
+++ 
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
@@ -34,6 +34,8 @@ import 
org.apache.shardingsphere.test.loader.strategy.TestParameterLoadStrategy;
 import 
org.apache.shardingsphere.test.loader.strategy.impl.GitHubTestParameterLoadStrategy;
 import org.junit.jupiter.api.condition.EnabledIf;
 import org.junit.jupiter.api.extension.ExtensionContext;
+import org.junit.jupiter.api.parallel.Execution;
+import org.junit.jupiter.api.parallel.ExecutionMode;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
 import org.junit.jupiter.params.provider.ArgumentsProvider;
@@ -49,6 +51,7 @@ public abstract class ExternalSQLParserIT {
     @ParameterizedTest(name = "{0} ({1}) -> {2}")
     @EnabledIf("isEnabled")
     @ArgumentsSource(TestCaseArgumentsProvider.class)
+    @Execution(ExecutionMode.CONCURRENT)
     void assertParseSQL(final String sqlCaseId, final String databaseType, 
final String sql, final String reportType) throws IOException {
         boolean isSuccess = false;
         try (
diff --git a/test/it/parser/src/main/resources/junit-platform.properties 
b/test/it/parser/src/main/resources/junit-platform.properties
new file mode 100644
index 00000000000..d04069a6e61
--- /dev/null
+++ b/test/it/parser/src/main/resources/junit-platform.properties
@@ -0,0 +1,19 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+junit.jupiter.execution.parallel.enabled = true
+junit.jupiter.execution.parallel.mode.default = concurrent

Reply via email to