Loading…
Unit Testing: Static Analysis and Dynamic Analysis
Unit testing is used by programmers to discover bugs with least cost. Static unit testing offers the minimum path coverage while dynamic unit testing detects control and data flow problems. In this paper, we develop a method to translate a program from "character" mode to "graph"...
Saved in:
Main Authors: | , , |
---|---|
Format: | Conference Proceeding |
Language: | English |
Subjects: | |
Online Access: | Request full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | Unit testing is used by programmers to discover bugs with least cost. Static unit testing offers the minimum path coverage while dynamic unit testing detects control and data flow problems. In this paper, we develop a method to translate a program from "character" mode to "graph" mode, so that the tester can picture the existing code without losing the ability to generate tests. In static analysis phrase, this method can help testers to detect grammar errors, extra code, non-initialized variables, search paths to cover the code, and generate tests. In dynamic phrase, testers can get benefit from this method to check internal logic, exception and boundary conditions. |
---|---|
DOI: | 10.1109/ICCIT.2009.106 |