blob: ff546c4a9a733f6a0285d84a4e05ce1be68ae04f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015, 2018 EfficiOS Inc. and others
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Alexandre Montplaisir - Initial API and implementation
*******************************************************************************/
package org.eclipse.tracecompass.alltests.swtbot;
import junit.extensions.RepeatedTest;
import junit.framework.JUnit4TestAdapter;
import junit.framework.TestSuite;
/**
* Run the {@link RunAllSWTBotTests} suite a lot of times, to catch flaky tests.
*/
public class SWTBotStressTests extends TestSuite {
private static final int NB_RUNS = 20;
/**
* @return Test suite definition
*/
public static TestSuite suite() {
TestSuite s = new TestSuite(String.format("Stress Test [%d runs]", NB_RUNS));
s.addTest(new RepeatedTest(new JUnit4TestAdapter(RunAllSWTBotTests.class), NB_RUNS));
return s;
}
}