org.sonar.plugins.python.xunit
Class PythonXunitSensor

java.lang.Object
  extended by org.sonar.plugins.python.PythonReportSensor
      extended by org.sonar.plugins.python.xunit.PythonXunitSensor
All Implemented Interfaces:
org.sonar.api.batch.CheckProject, org.sonar.api.batch.Sensor, org.sonar.api.BatchComponent, org.sonar.api.BatchExtension, org.sonar.api.Extension

public class PythonXunitSensor
extends PythonReportSensor


Field Summary
static String DEFAULT_REPORT_PATH
           
static String REPORT_PATH_KEY
           
 
Fields inherited from class org.sonar.plugins.python.PythonReportSensor
conf, log
 
Fields inherited from interface org.sonar.api.batch.Sensor
FLAG_SQUID_ANALYSIS
 
Constructor Summary
PythonXunitSensor(org.apache.commons.configuration.Configuration conf, Python lang)
           
 
Method Summary
protected  String defaultReportPath()
           
 Class<?> dependsUponCoverageSensors()
           
protected  void handleNoReportsCase(org.sonar.api.batch.SensorContext context)
           
protected  void processReport(org.sonar.api.resources.Project project, org.sonar.api.batch.SensorContext context, File report)
           
protected  String reportPathKey()
           
 
Methods inherited from class org.sonar.plugins.python.PythonReportSensor
analyse, getReports, shouldExecuteOnProject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPORT_PATH_KEY

public static final String REPORT_PATH_KEY
See Also:
Constant Field Values

DEFAULT_REPORT_PATH

public static final String DEFAULT_REPORT_PATH
See Also:
Constant Field Values
Constructor Detail

PythonXunitSensor

public PythonXunitSensor(org.apache.commons.configuration.Configuration conf,
                         Python lang)
Method Detail

dependsUponCoverageSensors

public Class<?> dependsUponCoverageSensors()

reportPathKey

protected String reportPathKey()
Overrides:
reportPathKey in class PythonReportSensor

defaultReportPath

protected String defaultReportPath()
Overrides:
defaultReportPath in class PythonReportSensor

processReport

protected void processReport(org.sonar.api.resources.Project project,
                             org.sonar.api.batch.SensorContext context,
                             File report)
                      throws javax.xml.stream.XMLStreamException
Overrides:
processReport in class PythonReportSensor
Throws:
javax.xml.stream.XMLStreamException

handleNoReportsCase

protected void handleNoReportsCase(org.sonar.api.batch.SensorContext context)
Overrides:
handleNoReportsCase in class PythonReportSensor


Copyright © 2011-2012 SonarSource and Waleri Enns. All Rights Reserved.