Skip to content

Commit 4b25eb9

Browse files
committed
Run tests in alphabetical order so that checkoutsRestored and gitChangelogSmokes pass reliably
1 parent 9707099 commit 4b25eb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/org/jenkinsci/plugins/workflow/steps/scm/SCMStepTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,17 @@
5757
import org.junit.Test;
5858
import static org.junit.Assert.*;
5959
import org.junit.ClassRule;
60+
import org.junit.FixMethodOrder;
6061
import org.junit.Rule;
62+
import org.junit.runners.MethodSorters;
6163
import org.jvnet.hudson.test.BuildWatcher;
6264
import org.jvnet.hudson.test.Issue;
6365
import org.jvnet.hudson.test.RestartableJenkinsRule;
6466
import org.jvnet.hudson.test.TestExtension;
6567
import org.kohsuke.stapler.DataBoundConstructor;
6668
import org.xml.sax.SAXException;
6769

70+
@FixMethodOrder(MethodSorters.NAME_ASCENDING) // TODO: checkoutsRestored and gitChangelogSmokes fail if they run after the other tests.
6871
public class SCMStepTest {
6972

7073
@ClassRule public static BuildWatcher buildWatcher = new BuildWatcher();

0 commit comments

Comments
 (0)