Add new custom test suite to run the SWTBot tests repeatedly
[deliverable/tracecompass.git] / releng / org.eclipse.tracecompass.alltests / src / org / eclipse / tracecompass / alltests / swtbot / SWTBotStressTests.java
CommitLineData
11bb996c
AM
1/*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc. and others
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
12
13package org.eclipse.tracecompass.alltests.swtbot;
14
15import junit.framework.JUnit4TestAdapter;
16import junit.framework.TestSuite;
17
18/**
19 * Run the {@link RunAllSWTBotTests} suite a lot of times, to catch flaky tests.
20 */
21public class SWTBotStressTests extends TestSuite {
22
23 private static final int NB_RUNS = 20;
24
25 /**
26 * @return Test suite definition
27 */
28 public static TestSuite suite() {
29 TestSuite s = new TestSuite();
30 for (int i = 0; i < NB_RUNS; i++) {
31 s.addTest(new JUnit4TestAdapter(RunAllSWTBotTests.class));
32 }
33 return s;
34 }
35}
This page took 0.025931 seconds and 5 git commands to generate.