저자는 jnuke라는 도구를 개발하여 advanced unit testing을 수행하고 이에 대한 사례를 소개한다. 기존의 basic testing에 비하여 다음의 특징들이 더해졌다고 소개한다.
1. Testable design
저자는 coverage 100%달성을 위해서 code의 design을 조금 다르게 가져갈 수 있다고 설명한다.
2. Log files
복잡한 text data들을 확인하는 작업은 사실상 어렵고 많은 시간을 요구한다. 성공적으로 수행하였을 경우에 나타나는 복잡한 log data는 하나의 훌륭한 oracle(expected result)이 될 수 있다고 설명한다. regression test를 수행하고 생성된 log data와의 비교는 diff와 같은 도구를 사용하여 손쉽게 할 수 있다.
3. Memory management
memory instructor를 wrapping하여 자체적으로 memory를 관리하였다고 설명한다.
4. Coverage measurement
5. Automatic indentation
'Papers > Unit Testing' 카테고리의 다른 글
What is a fixture? (0) | 2008.08.02 |
---|---|
Automated Unit Testing of Embedded ARM Applications (0) | 2008.02.09 |
The reasons why testing by developers is very important (0) | 2007.12.07 |
How Unit Tests Help Developers (0) | 2007.06.16 |
Why Bother to Unit Test? Executive Summary (0) | 2007.06.16 |