public class JsTestDriverSensor extends Object implements org.sonar.api.batch.Sensor
| Modifier and Type | Field and Description |
|---|---|
protected org.sonar.api.batch.fs.FileSystem |
fileSystem |
protected org.sonar.api.config.Settings |
settings |
| Constructor and Description |
|---|
JsTestDriverSensor(org.sonar.api.batch.fs.FileSystem fileSystem,
org.sonar.api.config.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
analyse(org.sonar.api.resources.Project project,
org.sonar.api.batch.SensorContext context) |
protected void |
collect(org.sonar.api.batch.SensorContext context,
File reportsDir) |
protected File |
getIOFile(String path)
Returns a java.io.File for the given path.
|
protected String |
getReportsDirectoryPath() |
protected org.sonar.api.batch.fs.InputFile |
getTestFileRelativePathToBaseDir(String fileName) |
protected String |
getUnitTestFileName(String className) |
boolean |
shouldExecuteOnProject(org.sonar.api.resources.Project project) |
String |
toString() |
protected org.sonar.api.batch.fs.FileSystem fileSystem
protected org.sonar.api.config.Settings settings
public JsTestDriverSensor(org.sonar.api.batch.fs.FileSystem fileSystem,
org.sonar.api.config.Settings settings)
public boolean shouldExecuteOnProject(org.sonar.api.resources.Project project)
shouldExecuteOnProject in interface org.sonar.api.batch.CheckProjectpublic void analyse(org.sonar.api.resources.Project project,
org.sonar.api.batch.SensorContext context)
analyse in interface org.sonar.api.batch.Sensorprotected void collect(org.sonar.api.batch.SensorContext context,
File reportsDir)
protected org.sonar.api.batch.fs.InputFile getTestFileRelativePathToBaseDir(String fileName)
protected File getIOFile(String path)
protected String getReportsDirectoryPath()
Copyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.