public class TestSuite extends Object
| Constructor and Description |
|---|
TestSuite(String key)
Creates a testsuite instance uniquely identified by the given key
|
| Modifier and Type | Method and Description |
|---|---|
TestSuite |
addMeasures(TestSuite ts)
Adds the measures contained by the given test suite to this test suite
|
void |
addTestCase(TestCase tc)
Adds the given test case to this testsuite maintaining the internal statistics
|
boolean |
equals(Object o) |
String |
getDetails()
Returns execution details as sonar-conform XML
|
int |
getErrors() |
int |
getFailures() |
org.sonar.api.batch.fs.InputFile |
getInputFile() |
String |
getKey() |
int |
getSkipped() |
List<TestCase> |
getTestCases()
Returns the testcases contained by this test suite
|
int |
getTests() |
int |
getTime() |
int |
hashCode() |
void |
setInputFile(org.sonar.api.batch.fs.InputFile inputFile) |
public TestSuite(String key)
key - The key to construct a testsuite forpublic String getKey()
public int getErrors()
public int getSkipped()
public int getTests()
public int getTime()
public int getFailures()
public void addTestCase(TestCase tc)
tc - the test case to addpublic TestSuite addMeasures(TestSuite ts)
ts - the test suite to add the measures frompublic List<TestCase> getTestCases()
public String getDetails()
public void setInputFile(org.sonar.api.batch.fs.InputFile inputFile)
public org.sonar.api.batch.fs.InputFile getInputFile()
Copyright © 2011–2015 SonarSource and Waleri Enns. All rights reserved.