|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.plugins.python.xunit.TestSuite
public class TestSuite
Represents a unit test suite. Contains testcases, maintains some statistics. Reports testcase details in sonar-conform XML
| Constructor Summary | |
|---|---|
TestSuite(String key)
Creates a testsuite instance uniquely identified by the given key |
|
| Method Summary | |
|---|---|
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()
|
String |
getKey()
|
int |
getSkipped()
|
org.sonar.api.resources.File |
getSonarResource()
|
List<TestCase> |
getTestCases()
Returns the testcases contained by this test suite |
int |
getTests()
|
int |
getTime()
|
int |
hashCode()
|
void |
setSonarResource(org.sonar.api.resources.File resource)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestSuite(String key)
key - The key to construct a testsuite for| Method Detail |
|---|
public String getKey()
public int getErrors()
public int getSkipped()
public int getTests()
public int getTime()
public int getFailures()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic 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 setSonarResource(org.sonar.api.resources.File resource)
public org.sonar.api.resources.File getSonarResource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||