Package jetbrains.buildServer.serverSide
Class TestGroup
- java.lang.Object
-
- jetbrains.buildServer.util.NamedDataGroup<STestRun>
-
- jetbrains.buildServer.serverSide.TestGroup
-
public class TestGroup extends NamedDataGroup<STestRun>
This class was created to represent a group of tests. Tests could be grouped by name, package, etc.- Since:
- 4.5
- Author:
- kir
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestGroup.Order-
Nested classes/interfaces inherited from class jetbrains.buildServer.util.NamedDataGroup
NamedDataGroup.GroupExtractor<Item>
-
-
Constructor Summary
Constructors Constructor Description TestGroup(List<STestRun> tests)Create root test group with given testsTestGroup(TestGroupName groupName)Create test group with given group name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()Return summary duration of the tests included into this group (with subgroups)intgetFailedTestCount()TestGroupNamegetGroupName()Return low-level object for group name formattingintgetIgnoredTestCount()intgetTestCount()voidsortTestsByGroups()Sort tests alphabetically considering suite, package, class, test name + parameters-
Methods inherited from class jetbrains.buildServer.util.NamedDataGroup
addGroup, addItem, getGroups, getItems, getName, getParent, groupBy, removeGroup, setGroups, setItems, setParent, sortGroups, toString
-
-
-
-
Constructor Detail
-
TestGroup
public TestGroup(List<STestRun> tests)
Create root test group with given tests- Parameters:
tests- tests for the group
-
TestGroup
public TestGroup(TestGroupName groupName)
Create test group with given group name- Parameters:
groupName- name of the group
-
-
Method Detail
-
getGroupName
public TestGroupName getGroupName()
Return low-level object for group name formatting- Returns:
- see above
-
getDuration
public long getDuration()
Return summary duration of the tests included into this group (with subgroups)- Returns:
- see above
-
getFailedTestCount
public int getFailedTestCount()
-
getIgnoredTestCount
public int getIgnoredTestCount()
-
getTestCount
public int getTestCount()
-
sortTestsByGroups
public void sortTestsByGroups()
Sort tests alphabetically considering suite, package, class, test name + parameters
-
-