[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/1639950.1639961acmconferencesArticle/Chapter ViewAbstractPublication PagessplashConference Proceedingsconference-collections
research-article

Reverse generation and refactoring of fit acceptance tests for legacy code

Published: 25 October 2009 Publication History

Abstract

The Fit framework is a well established tool for creating early and automated acceptance tests. Available Eclipse plug-ins like FITPro support the writing of test data and the creation of test stubs quite well for new requirements and new code. In our project we faced the problem, that a large legacy system should undergo a major refactoring. Before this, acceptance tests had to be added to the system to ensure equivalent program behavior before and after the changes. Writing acceptance tests manually for existing code is very laborious, cumbersome and very costly. However reverse generation of fit tests based on legacy code is not foreseen in the current Fit framework, and there are no other tools available to do so. So we decided to develop a tool which allows generation of the complete Fit test code and test specification based on existing code. The tool also includes automatic refactoring of test data when refactoring production code and vice versa, when changing the Fit test specification, it also updates production code accordingly. This reduces the maintenance effort of Fit tests in general and we hope, this will help to spread the usage of Fit for acceptance and integration testing even more.

References

[1]
Aspect Research Associates. Contract4J. http://www.contract4j.org (09.10.2008), 2003--2008.
[2]
E. Clayberg and D. Rubel. Eclipse Plug-ins. Addison-Wesley Professional, Reading, Massachusetts, third edition, December 2008.
[3]
M. C. Feathers. Working Effectively with legacy Code. Pearson Education, Inc., New Jersey, 2005.
[4]
Hasler Foundation. ProMedServices -- Proactive Software Service Improvement. http://web.fhnw.ch/technik/projekte/promedservices (19.03.2009), 2008.
[5]
IEEE Comnputer Society. SWEBOK. http://www.swebok.org/ (27.01.2007), 2007--2008.
[6]
Luxoft UK Limited. FITpro -- Acceptance Testing Solution. http://sourceforge.net/projects/fitpro (02.10.2008), 2008.
[7]
R. Mugridge andW. Cunningham. Fit for Developing Software. Pearson Education, Inc., New Jersey, 2005.
[8]
D. Peterson. Concordion. http://www.concordion.org (01.10.2008), 2007--2008.
[9]
W. Cunningham. Framework for Integrated Test -- Fit. http://fit.c2.com/ (10.10.2008), 2008.
[10]
T. Widmer. Unleashing the Power of Refactoring. IBM Rational Research Lab Zurich, February 2007.

Cited By

View all
  • (2015)Analyzing Refactorings' Impact on Regression Test CasesProceedings of the 2015 IEEE 39th Annual Computer Software and Applications Conference - Volume 0210.1109/COMPSAC.2015.16(222-231)Online publication date: 1-Jul-2015

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
OOPSLA '09: Proceedings of the 24th ACM SIGPLAN conference companion on Object oriented programming systems languages and applications
October 2009
502 pages
ISBN:9781605587684
DOI:10.1145/1639950
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 25 October 2009

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. code generation
  2. eclipse
  3. maintenance
  4. refactoring
  5. testing

Qualifiers

  • Research-article

Conference

OOPSLA09
Sponsor:

Upcoming Conference

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 13 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2015)Analyzing Refactorings' Impact on Regression Test CasesProceedings of the 2015 IEEE 39th Annual Computer Software and Applications Conference - Volume 0210.1109/COMPSAC.2015.16(222-231)Online publication date: 1-Jul-2015

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media