Towards a Taxonomy of Unit Tests

نویسندگان

  • Markus Gälli
  • Michele Lanza
  • Oscar Nierstrasz
چکیده

Not all unit tests are alike. Some tests are simple oneliners, while others contain a battery of assertions. Certain tests focus on a single method, while others test interactions between methods. There are even tests that do not contain assertions at all. This can make it difficult for a developer to understand which methods are tested by which tests, to what degree they are tested, and what to take into account while refactoring. We have manually analyzed the test base of a large existing object-oriented system in order to derive a first taxonomy of unit tests. We have then developed some simple tools to semi-automatically categorize tests according to this taxonomy, and applied it to two case studies. Beside explaining our taxonomy, we report on our initial results using it, namely that a majority of unit tests focus on single methods and that our lightweight automatic categorization could already classify more than 50% of these single method commands.

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

ثبت نام

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

منابع مشابه

Towards a Taxonomy of SUnit Tests ?

Although unit testing has gained popularity in recent years, the style and granularity of individual unit tests may vary wildly. This can make it difficult for a developer to understand which methods are tested by which tests, to what degree they are tested, what to take into account while refactoring code and tests, and to assess the value of an existing test. We have manually categorized the ...

متن کامل

Using Bloom’s Revised Cognitive Skills Taxonomy To Evaluate Iranian Students’ Pre-University English Textbook and University Entrance Exams

The priority attributed to the use of Bloom’s revised cognitive skills taxonomy in any educational system and the scarcity of research on this type of topic in our EFL context, the researchers attempted to conduct this study. Our primary objectives revolved around these dimensions. To examine if the pre-university teaching materials (English 1 and 2) assigned and employed by t...

متن کامل

COVID-19; History, Taxonomy, and Diagnostic Molecular and Immunological Techniques

In recent years, viral epidemics such as the coronavirus disease (COVID-19) have spread, and this outbreak is thought to be the result of animal-to-human transmission. Hence, accurate diagnostic tests to detect COVID-19 and antiviral antibodies in infected individuals are of utmost importance. This report describes the structure, history, taxonomy, and molecular and immunological techniques for...

متن کامل

بررسی روند پنج ساله طراحی آزمون‌های چندگزینه‌ای ارتقاء دستیاری تخصصی پزشکی دانشگاه علوم پزشکی کرمانشاه از نظر کمی و کیفی: 1391-1387

Introduction: Multiple choice questions (MCQs) are widely used to assess medical residents. The study aims to analyse MCQ exams of medical residents administered at Kermanshah University of Medical Sciences during 2008-2012. Method: Data of this retrospective study were extracted from 63 MCQ exams including 9600 tests. Quantity related variables included discrimination index, difficulty level, ...

متن کامل

Evaluation of Multiple Choice Questions Quality Trend as Structure and Taxonomy

Background: Evaluation of multiple-choice questions is a strategic activity and the most effective tool in educational system and improvement. In this study, the quality of some indexes of multiple-choice exams in Babol Para Medical faculty was investigated on the basis of structure and knowledge level distribution in the first semesters of 2007 and 2012. Methods: The Milman checklist was used ...

متن کامل

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


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

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

دوره   شماره 

صفحات  -

تاریخ انتشار 2004