jetbrains.buildServer.serverSide
Class TestGroup

java.lang.Object
  extended by jetbrains.buildServer.util.NamedDataGroup<STestRun>
      extended by 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
static class TestGroup.Order
           
 
Nested classes/interfaces inherited from class jetbrains.buildServer.util.NamedDataGroup
NamedDataGroup.GroupExtractor<Item>
 
Constructor Summary
TestGroup(java.util.List<STestRun> tests)
          Create root test group with given tests
TestGroup(TestGroupName groupName)
          Create test group with given group name
 
Method Summary
 long getDuration()
          Return summary duration of the tests included into this group (with subgroups)
 int getFailedTestCount()
           
 TestGroupName getGroupName()
          Return low-level object for group name formatting
 int getIgnoredTestCount()
           
 int getTestCount()
           
 void sortTestsByGroups()
          Sort tests alphabetically considering suite, package, class, testname + parameters
 
Methods inherited from class jetbrains.buildServer.util.NamedDataGroup
addGroup, addItem, getGroups, getItems, getName, getParent, groupBy, removeGroup, setGroups, setItems, setParent, sortGroups
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestGroup

public TestGroup(java.util.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, testname + parameters