use of org.gradle.tooling.internal.provider.test.ProviderInternalTestExecutionRequest in project gradle by gradle.
the class DefaultConnection method runTests.
/**
* This is used by consumers 2.6-rc-1 and later
*/
public BuildResult<?> runTests(InternalTestExecutionRequest testExecutionRequest, InternalCancellationToken cancellationToken, BuildParameters operationParameters) throws BuildExceptionVersion1, InternalUnsupportedBuildArgumentException, IllegalStateException {
ProviderOperationParameters providerParameters = validateAndConvert(operationParameters);
ProviderInternalTestExecutionRequest testExecutionRequestVersion2 = adapter.adapt(ProviderInternalTestExecutionRequest.class, testExecutionRequest);
BuildCancellationToken buildCancellationToken = new InternalCancellationTokenAdapter(cancellationToken);
Object results = connection.runTests(testExecutionRequestVersion2, buildCancellationToken, providerParameters);
return new ProviderBuildResult<Object>(results);
}
Aggregations