Java Code Coverage Test Technology Based on EMMA

Article Preview

Abstract:

Traditionally, at the end of functional testing, testers resort to the numbers of problems reported and the test cases executed to evaluate the adequacy of the testing. This method generally results in that testers have no confidence in the test results. Therefore, we introduce coverage to settle this problem. EMMA is an open source testing tool which detects and reports Java code coverage. In this paper, two actual functional testing as examples to explain the processes of using EMMA command line and EMMA with Ant to obtain code coverage, further to explain how to increase test cases to accumulate code coverage based on EMMA. The final code coverage analysis reports testify that using EMMA can greatly ensure the integrity of the functional testing.

You might also be interested in these eBooks

Info:

Periodical:

Advanced Materials Research (Volumes 1049-1050)

Pages:

2069-2072

Citation:

Online since:

October 2014

Keywords:

Export:

Price:

Permissions CCC:

Permissions PLS:

Сopyright:

© 2014 Trans Tech Publications Ltd. All Rights Reserved

Share:

Citation:

* - Corresponding Author

[1] Stephen Brown Joe Timoney Tom Lysaght and Deshi Ye. Software Testing Principles and Practice , China Machine Press, November 2006. 24-25.

Google Scholar

[2] Ying Liu, Ying Wang, Mandan Liu. Coverage Testing of Embedded Software [J], Automation Instrumentation, June 2012. 63.

Google Scholar

[3] Linlin Zhang. Java Card Code Coverage Data Source Mechanism and Calculation, Beijing Traffic University, June 2012. 5.

Google Scholar

[4] Yunfei San. Functional Testing Obtains Code Coverage by using EMMA, http: /www. ibm. com/developerworks/cn/opensource/os-cn-emma/, June (2008).

Google Scholar

[5] Cedric Beust and Hani Suleiman. Next Generation Java Testing: TestNG and Advanced Concepts, China Machine Press, August 2008. 98-100.

Google Scholar