Package org.sonar.api.batch.sensor.test

Examples of org.sonar.api.batch.sensor.test.TestCaseExecution


      String type = split.next();
      String status = split.next();
      String message = split.next();
      String stack = split.next();
      String durationStr = StringUtils.trimToNull(split.next());
      TestCaseExecution test = context.newTestCaseExecution()
        .inTestFile(testFile)
        .name(name)
        .ofType(TestCaseExecution.Type.valueOf(type))
        .status(TestCaseExecution.Status.valueOf(status))
        .message(StringUtils.trimToNull(message))
        .stackTrace(StringUtils.trimToNull(stack));
      if (durationStr != null) {
        test.durationInMs(Long.parseLong(durationStr));
      }
      test.save();
    } catch (Exception e) {
      throw new IllegalStateException("Error processing line " + lineNumber + " of file " + testplanFile.getAbsolutePath(), e);
    }
  }
View Full Code Here

TOP

Related Classes of org.sonar.api.batch.sensor.test.TestCaseExecution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.