28.18. MemberUnitTest

28.18.1. Description

MemberUnitTest reduction function computes telemetry stream(s) representing project member unit test invocation information. See the next section for the information that can be compputed.

28.18.2. Parameter

Table 28.17. 

ParameterDescriptionDefault
modeOne of 'TotalCount', 'SuccessCount' or 'TestTime' (in millis).TotalCount
filePatternAnt-like file pattern specifying the files to be included in computation.**
isCumulativeIf true, an cumulative version of telemetry stream is returned.false
memberEmailIf '*' is supplied, then a collection of telemetry streams is return, with one telemetry stream for each member in the project. If a member email is supplied, then only one telemetry stream is returned representing this member's active time in the project.*

28.18.3. Example 1

Example 28.27. Total Unit Test Invocations (One Member)

streams TotalMemberUnitTestStream(memberEmail) = {
   "Total Unit Test Invocations",
   MemberUnitTest("TotalCount", "**", "false", memberEmail)
};

y-axis yAxis(label) = {label};

chart TotalMemberUnitTestChart(memberEmail) = {
  "Total Unit Test Invocations", 
  (TotalMemberUnitTestStream(memberEmail), yAxis("Total Invocations"))
};

draw TotalMemberUnitTestChart("undisclosed@hawaii.edu");

This chart shows the number of total unit test invocations for one project member. Note the parameter value passed to 'memberEmail'.

28.18.4. Example 2

Example 28.28. Total Unit Test Invocations (All Members)

streams TotalMemberUnitTestStream(memberEmail) = {
   "Total Unit Test Invocations",
   MemberUnitTest("TotalCount", "**", "false", memberEmail)
};

y-axis yAxis(label) = {label};

chart TotalMemberUnitTestChart(memberEmail) = {
  "Total Unit Test Invocations", 
  (TotalMemberUnitTestStream(memberEmail), yAxis("Total Invocations"))
};

draw TotalMemberUnitTestChart("qzhang@hawaii.edu");

This chart shows a collection of telemetry streams representing the number of total unit test invocations for each one of the project members. Note the parameter value passed to 'memberEmail'.