From ddb6c7bd0ec05ecafb6cd6056efa696db7c96ba2 Mon Sep 17 00:00:00 2001 From: James Procter Date: Sat, 30 Sep 2023 15:04:11 +0100 Subject: [PATCH] JAL-4217 move CommandsTest to testTask3 involving structure image export and random NPE in commandsOpen test on osx --- build.gradle | 21 +++++++++++++++++++++ test/jalview/bin/CommandsTest.java | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index c4ed582..8ac2757 100644 --- a/build.gradle +++ b/build.gradle @@ -1783,6 +1783,27 @@ task testTask1(type: Test) { } } +task testTask2(type: Test) { + group = "Verification" + description = "Tests that need to be isolated from the main test run" + useTestNG() { + includeGroups name + excludeGroups testng_excluded_groups.split(",") + preserveOrder true + useDefaultListeners=true + } +} +task testTask3(type: Test) { + group = "Verification" + description = "Tests that need to be isolated from the main test run" + useTestNG() { + includeGroups name + excludeGroups testng_excluded_groups.split(",") + preserveOrder true + useDefaultListeners=true + } +} + /* insert more testTaskNs here -- change N to next digit or other string */ /* task testTaskN(type: Test) { diff --git a/test/jalview/bin/CommandsTest.java b/test/jalview/bin/CommandsTest.java index 8dae8f3..ecec67d 100644 --- a/test/jalview/bin/CommandsTest.java +++ b/test/jalview/bin/CommandsTest.java @@ -96,7 +96,7 @@ public class CommandsTest } */ - @Test(groups = "Functional", dataProvider = "cmdLines") + @Test(groups = {"Functional","testTask3"}, dataProvider = "cmdLines") public void commandsOpenTest(String cmdLine, boolean cmdArgs, int numFrames, String[] sequences) { @@ -147,7 +147,7 @@ public class CommandsTest @Test( groups = - { "Functional", "testTask1" }, + { "Functional", "testTask3" }, dataProvider = "structureImageOutputFiles") public void structureImageOutputTest(String cmdLine, String[] filenames) throws IOException -- 1.7.10.2