Skip to content

Commit 6dedc12

Browse files
vogellaakurtakov
authored andcommitted
Run addons SWT tests via the AllTests suite in the Tycho build
Instead of relying on Tycho's class-name autodiscovery, use the standard Tycho approach via build.properties. Reintroduce the AllTests @suite and point Tycho at it through the pom.model.property.testClass build property. This disables the additional name-based scan, so each test class is executed exactly once via the suite. The restored suite also includes StackDropAgentTest, which the previous AllTests suite had omitted, so every test class in the bundle is now part of the suite.
1 parent 8979873 commit 6dedc12

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

tests/org.eclipse.e4.ui.workbench.addons.swt.test/build.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ source.. = src/
22
output.. = bin/
33
bin.includes = META-INF/,\
44
.
5+
6+
# Maven properties, see https://github.com/eclipse/tycho/wiki/Tycho-Pomless
7+
pom.model.property.testClass = org.eclipse.e4.ui.workbench.addons.AllTests
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2024 Vector Informatik GmbH and others.
3+
*
4+
* This program and the accompanying materials
5+
* are made available under the terms of the Eclipse Public License 2.0
6+
* which accompanies this distribution, and is available at
7+
* https://www.eclipse.org/legal/epl-2.0/
8+
*
9+
* SPDX-License-Identifier: EPL-2.0
10+
*
11+
* Contributors:
12+
* Heiko Klare - initial API and implementation
13+
*******************************************************************************/
14+
package org.eclipse.e4.ui.workbench.addons;
15+
16+
import org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddonTest;
17+
import org.eclipse.e4.ui.workbench.addons.dndaddon.StackDropAgentTest;
18+
import org.eclipse.e4.ui.workbench.addons.minmax.MaximizableChildrenTagTest;
19+
import org.eclipse.e4.ui.workbench.addons.minmax.MaximizeBugTest;
20+
import org.eclipse.e4.ui.workbench.addons.minmax.MaximizePartSashContainerPlaceholderTest;
21+
import org.junit.platform.suite.api.SelectClasses;
22+
import org.junit.platform.suite.api.Suite;
23+
24+
@Suite
25+
@SelectClasses({ //
26+
StackDropAgentTest.class, //
27+
MaximizeBugTest.class, //
28+
MaximizePartSashContainerPlaceholderTest.class, //
29+
MaximizableChildrenTagTest.class, //
30+
CleanupAddonTest.class, //
31+
})
32+
public class AllTests {
33+
34+
}

0 commit comments

Comments
 (0)