diff options
author | Pierre-Charles David | 2014-11-26 14:14:02 +0000 |
---|---|---|
committer | Pierre-Charles David | 2014-11-26 14:34:42 +0000 |
commit | 5f61a86ae46fafaa9dd3b1a4a7f15ac78d44f034 (patch) | |
tree | 50294f6fde0e50fa3aa7efe6f839b6239cbb3876 | |
parent | 37e56fb18441d35b82d0d662e9b682f2338ed0b8 (diff) | |
download | org.eclipse.sirius-5f61a86ae46fafaa9dd3b1a4a7f15ac78d44f034.tar.gz org.eclipse.sirius-5f61a86ae46fafaa9dd3b1a4a7f15ac78d44f034.tar.xz org.eclipse.sirius-5f61a86ae46fafaa9dd3b1a4a7f15ac78d44f034.zip |
[445371] Add two SWTbot suites, each running half of the complete one
The new suites are only executed when activating the "swtbot-part1"
and/or "swtbot-part2" profiles. The complete suite is still executed
when using the plain "swtbot" profile, so it should have zero impact on
existing CI jobs.
Bug: 445371
Change-Id: I1e88378364219345c666ab35832c8fb9b84845d6
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
3 files changed, 114 insertions, 0 deletions
diff --git a/packaging/org.eclipse.sirius.tests.parent/pom.xml b/packaging/org.eclipse.sirius.tests.parent/pom.xml index 4b01625fc1..12606cc5fd 100644 --- a/packaging/org.eclipse.sirius.tests.parent/pom.xml +++ b/packaging/org.eclipse.sirius.tests.parent/pom.xml @@ -150,6 +150,30 @@ </properties> </profile> <profile> + <id>swtbot-part1</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <tests.swtbot.skip>false</tests.swtbot.skip> + <tests.timeout>${tests.timeout.swtbot}</tests.timeout> + <tests.swtbot.include>org/eclipse/sirius/tests/swtbot/suite/SWTBotPart1Suite.class</tests.swtbot.include> + <tests.vmargs>${tests.vmargs.mac} -Xmx2048m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError</tests.vmargs> + </properties> + </profile> + <profile> + <id>swtbot-part2</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <tests.swtbot.skip>false</tests.swtbot.skip> + <tests.timeout>${tests.timeout.swtbot}</tests.timeout> + <tests.swtbot.include>org/eclipse/sirius/tests/swtbot/suite/SWTBotPart2Suite.class</tests.swtbot.include> + <tests.vmargs>${tests.vmargs.mac} -Xmx2048m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError</tests.vmargs> + </properties> + </profile> + <profile> <id>swtbot-sequence</id> <activation> <activeByDefault>false</activeByDefault> diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/suite/SWTBotPart1Suite.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/suite/SWTBotPart1Suite.java new file mode 100644 index 0000000000..41de7d1580 --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/suite/SWTBotPart1Suite.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2014 Obeo. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.tests.swtbot.suite; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; +import junit.textui.TestRunner; + +/** + * First half of the Sirius SWTBot Tests. + * + * @author pcdavid + */ +public class SWTBotPart1Suite extends TestCase { + + /** + * Launches the test with the given arguments. + * + * @param args + * Arguments of the testCase. + */ + public static void main(final String[] args) { + TestRunner.run(suite()); + } + + /** + * Creates the {@link junit.framework.TestSuite TestSuite} for all the test. + * + * @return The testsuite containing all the tests + */ + public static Test suite() { + TestSuite suite = new TestSuite("Sirius SWTBot Tests - Part 1/2"); + AllTestSuite.addPart1(suite); + return suite; + } +} diff --git a/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/suite/SWTBotPart2Suite.java b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/suite/SWTBotPart2Suite.java new file mode 100644 index 0000000000..15fe77c10d --- /dev/null +++ b/plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/suite/SWTBotPart2Suite.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2014 Obeo. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Obeo - initial API and implementation + *******************************************************************************/ +package org.eclipse.sirius.tests.swtbot.suite; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; +import junit.textui.TestRunner; + +/** + * Second half of the Sirius SWTBot Tests. + * + * @author pcdavid + */ +public class SWTBotPart2Suite extends TestCase { + + /** + * Launches the test with the given arguments. + * + * @param args + * Arguments of the testCase. + */ + public static void main(final String[] args) { + TestRunner.run(suite()); + } + + /** + * Creates the {@link junit.framework.TestSuite TestSuite} for all the test. + * + * @return The testsuite containing all the tests + */ + public static Test suite() { + TestSuite suite = new TestSuite("Sirius SWTBot Tests - Part 2/2"); + AllTestSuite.addPart2(suite); + return suite; + } +} |