This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 87fb904328 Add multi tests to the Run Unit Test action #5889 (#5904)
87fb904328 is described below
commit 87fb904328386069cf601bea689e541f0d32f069
Author: Nicolas Adment <[email protected]>
AuthorDate: Sun Oct 26 10:36:09 2025 +0100
Add multi tests to the Run Unit Test action #5889 (#5904)
Avoid selecting one by one in the dialog box.
---
.../testing/actions/runtests/RunPipelineTestsDialog.java | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git
a/plugins/misc/testing/src/main/java/org/apache/hop/testing/actions/runtests/RunPipelineTestsDialog.java
b/plugins/misc/testing/src/main/java/org/apache/hop/testing/actions/runtests/RunPipelineTestsDialog.java
index e7603182f7..c09f6cd410 100644
---
a/plugins/misc/testing/src/main/java/org/apache/hop/testing/actions/runtests/RunPipelineTestsDialog.java
+++
b/plugins/misc/testing/src/main/java/org/apache/hop/testing/actions/runtests/RunPipelineTestsDialog.java
@@ -196,21 +196,20 @@ public class RunPipelineTestsDialog extends ActionDialog
implements IActionDialo
IHopMetadataSerializer<PipelineUnitTest> testSerializer =
metadataProvider.getSerializer(PipelineUnitTest.class);
List<String> testNames = testSerializer.listObjectNames();
-
if (!Utils.isEmpty(testNames)) {
- String[] sortedTestNames =
- Const.sortStrings(testNames.toArray(new String[testNames.size()]));
+ String[] sortedTestNames = Const.sortStrings(testNames.toArray(new
String[0]));
EnterSelectionDialog dialog =
new EnterSelectionDialog(
shell,
sortedTestNames,
BaseMessages.getString(PKG,
"RunTestsDialog.AvailableTests.Title"),
BaseMessages.getString(PKG,
"RunTestsDialog.AvailableTests.Message"));
-
- String d = dialog.open();
- if (d != null) {
+ dialog.setMulti(true);
+ if (dialog.open() != null) {
wTestNames.removeEmptyRows();
- wTestNames.add(d);
+ for (int i : dialog.getSelectionIndeces()) {
+ wTestNames.add(sortedTestNames[i]);
+ }
}
}
} catch (Exception e) {