Skip to content

Commit

Permalink
Use Rollup in failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
donat committed Sep 25, 2023
1 parent 8339fa2 commit 35661c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ private void onTestRunEndedEvent(EclipseTestEvent.TestRunEnded event) {
private static final Pattern ECLIPSE_TEST_NAME = Pattern.compile("(.*)\\((.*)\\)");

private void onTestStartedEvent(EclipseTestEvent.TestStarted event) {
logger.info("Test started (" + event.getTestId() + "): " + event.getTestName());

// TODO need idGenerator
String testClass = event.getTestName();
String testMethod = event.getTestName();
Expand All @@ -86,6 +84,9 @@ private void onTestStartedEvent(EclipseTestEvent.TestStarted event) {
testMethod = matcher.group(1);
}

logger.info("Test started (id=" + event.getTestId() + ", testName=" + event.getTestName() + ", class=" + testClass + ", method=" + testMethod);


String classId = getClassId(event);
this.currentTestClass = testClass(classId, testClass, this.currentTestSuite);
this.resultProcessor.started(this.currentTestClass, startEvent(this.currentTestSuite));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
package org.eclipse.buildship.core.internal.configuration

import org.eclipse.buildship.core.internal.test.fixtures.WorkspaceSpecification

import spock.lang.Rollup

import org.eclipse.buildship.core.GradleDistribution

class WorkspaceConfigurationTest extends WorkspaceSpecification {
Expand All @@ -29,6 +32,7 @@ class WorkspaceConfigurationTest extends WorkspaceSpecification {
configuration.experimentalModuleSupportEnabled == false
}

@Rollup
def "Can save workpsace configuration"(GradleDistribution distribution, String gradleUserHome, String javaHome, boolean offlineMode, boolean buildScansEnabled, boolean autoSync, List args, List jvmArgs, boolean showConsole, boolean showExecutions, moduleSupportEnabled) {
setup:
WorkspaceConfiguration orignalConfiguration = configurationManager.loadWorkspaceConfiguration()
Expand Down

0 comments on commit 35661c1

Please sign in to comment.