Retrofitting unit tests

نویسندگان

  • Steve Freeman
  • Paul Simmons
چکیده

In this paper we describe techniques that we have found helpful for adding unit tests to existing code that has been written without tests. The paper presents some common coding practices that make unit tests hard to retrofit, and why. For each practice we suggest minimal refactorings to open up the code for testing.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Retrofitting Unit Tests for Parameterized Unit Testing

Recent advances in software testing introduced parameterized unit tests (PUT), which accept parameters, unlike conventional unit tests (CUT), which do not accept parameters. PUTs are more beneficial than CUTs with regards to fault-detection capability, since PUTs help describe the behaviors of methods under test for all test arguments. In general, existing applications often include manually wr...

متن کامل

Distributed NSGA-II for seismic retrofitting optimization with multi-core PC cluster

1. Abstract The distributed Genetic Algorithm (GA) for PC cluster with multi-core-CPUs is proposed as a time reducing method for determining the schemes of retrofitting existing buildings with Buckling restrained Brace (BRB). Nondominated Sorting Genetic Algorithm-II (NSGA-II), one of the derivative evolutionary algorithm in heuristic method, was applied since the optimization problem have a mu...

متن کامل

Retrofitting Masonry Walls with Carbon Mesh

Static-cyclic shear load tests and tensile tests on retrofitted masonry walls were conducted at UAS Fribourg for an evaluation of the newly developed retrofitting system, the S&P ARMO-System. This retrofitting system consists of a composite of carbon mesh embedded in a specially adapted high quality spray mortar. It can be applied with established construction techniques using traditional const...

متن کامل

Benefits of Retrofitting Seat Belt Reminder Systems to Australian Passenger Vehicles

The aim of this study was to determine the potential benefits of retrofitting a seat belt reminder device to passenger vehicles in the Australian fleet. The analysis was restricted to vehicles up to ten years of age at the time of retrofitting which were assumed to have at least a driver airbag fitted. While seat belt wearing rates have been observed at around 95% in the front seat, non–wearing...

متن کامل

On the Use of CFRP Sheets for the Seismic Retrofitting of Masonry Walls and the Influence of Mechanical Anchorage

This work reports the outcomes of an extensive experimental campaign on the retrofitting of masonry walls by means of carbon fiber reinforced polymer (CFRP) sheets, carried out at University of Applied Sciences (UAS) Fribourg. In the first stage, static-cyclic shear tests were conducted on the masonry walls, followed by a second stage of tensile tests on alternative configurations of mechanical...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002