Skip to content

Commit

Permalink
Run testsuites in defined order on Jenkins
Browse files Browse the repository at this point in the history
Added one suite to rule all: RunAllJdtModelTestsTracing, to avoid
(random) pattern-matching based test execution order in maven build.
Additionally run all tests with TracingSuite (will log every test
executed & create dumps if test hangs).

See eclipse-jdt#2536
  • Loading branch information
iloveeclipse authored and gayanper committed Sep 7, 2024
1 parent 73a5099 commit 2791d16
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
4 changes: 1 addition & 3 deletions org.eclipse.jdt.core.tests.model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
<configuration>
<argLine>-Xmx1G -Djdt.default.test.compliance=1.8 -DDetectVMInstallationsJob.disabled=true ${tycho.surefire.argLine}</argLine>
<includes>
<include>org/eclipse/jdt/core/tests/model/AllJavaModelTestsTracing.class</include>
<include>org/eclipse/jdt/core/tests/dom/RunAllTestsTracing.class</include>
<include>org/eclipse/jdt/core/tests/RunFormatterTests.class</include>
<include>org/eclipse/jdt/core/tests/RunAllJdtModelTestsTracing.class</include>
</includes>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*******************************************************************************
* Copyright (c) 2024 Andrey Loskutov ([email protected]) and others.
*
* 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:
* Andrey Loskutov ([email protected]) - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.core.tests;

import org.eclipse.jdt.core.tests.dom.RunAllTests;
import org.eclipse.jdt.core.tests.model.AllJavaModelTests;
import org.eclipse.test.TracingSuite;
import org.eclipse.test.TracingSuite.TracingOptions;
import org.junit.runner.RunWith;
import org.junit.runners.Suite.SuiteClasses;

@RunWith(TracingSuite.class)
@SuiteClasses({ RunFormatterTests.class, RunAllTests.class, AllJavaModelTests.class })
@TracingOptions(stackDumpTimeoutSeconds = 60)
public class RunAllJdtModelTestsTracing {
}

0 comments on commit 2791d16

Please sign in to comment.