This Example Flow shows a sample on how to perform Unit Tests in Core Asset Development (CAD). Red
arrows are to be followed in order to have guidance on the activities to be performed.
Unit Testing activities in CAD are to be performed after reviewing the inputs artifacts, as can be
seen in the following picture.
The following image depicts the general view of the activities Unit Testing discipline comprises. Four are the main
activities to be performed: 1) Planning; 2) Assets Design; 3) Execution; 4) Reporting. Additional activities can also
be performed, with aid of other RiPLE disciplines, e.g. Change Management, from RiPLE-EM (Evolution Management
Discipline). The use of every activity and related set of steps will be presented in depth, as we illustrate the
process flow.
The first steps towards Unit Testing are combined in Unit Testing Planning.
Unit Testing Planning is broken down into the following steps.
After accomplishing the steps in Planning, it is time to Design Test Assets.
Unit Test Assets Design is broken down in a set of steps, as following presented.
Then, we are ready to execute the tests, based on the assets just produced. As the previous
activities. Unit Test Execution are divided into a set of steps as well.
If, during test execution, errors are found in the code or another non-compliance situation is
experienced, there must be an interaction with RiPLE-EM, the RiPLE discipline responsible for evolution and change
management for SPL, including issues related to Change Request Management. Thus, at this point the interaction takes
place.
Then, we go to the last activity, Test Report, which also includes a set of steps, as shown right below.
There is a condition to be checked against right after performing this activity. It is related to the decision depicted
by a yellow arrow, in which the coverage criteria is evaluated. At this point, if the coverage criteria defined in the
planning activity is not achieved, the plan should be revisited in order to decide whether a new run of unit tests in
the component under test should be performed or update the coverage criteria prior defined. It is a decision to be
made by the responsible stakeholders, such as Test Manager and Test Architect.
|