use of org.gradle.api.internal.tasks.testing.DefaultTestSuiteDescriptor in project gradle by gradle.
the class TestNGTestResultProcessorAdapter method onStart.
@Override
public void onStart(ISuite suite) {
TestDescriptorInternal testInternal;
synchronized (lock) {
if (suiteId.containsKey(suite)) {
// Can get duplicate start events
return;
}
Object id = idGenerator.generateId();
testInternal = new DefaultTestSuiteDescriptor(id, suite.getName());
suiteId.put(suite, testInternal.getId());
}
resultProcessor.started(testInternal, new TestStartEvent(clock.getCurrentTime()));
}
use of org.gradle.api.internal.tasks.testing.DefaultTestSuiteDescriptor in project gradle by gradle.
the class TestNGTestResultProcessorAdapter method onStart.
@Override
public void onStart(ITestContext iTestContext) {
TestDescriptorInternal testInternal;
Object parentId;
synchronized (lock) {
Object id = idGenerator.generateId();
testInternal = new DefaultTestSuiteDescriptor(id, iTestContext.getName());
parentId = suiteId.get(iTestContext.getSuite());
xmlTestIds.put(iTestContext.getCurrentXmlTest(), id);
testId.put(iTestContext, testInternal.getId());
for (ITestNGMethod method : iTestContext.getAllTestMethods()) {
testMethodParentId.put(method, testInternal.getId());
}
}
resultProcessor.started(testInternal, new TestStartEvent(iTestContext.getStartDate().getTime(), parentId));
}
Aggregations