Bakalářská práce

Implement detection of duplicate test coverage for Java applications

Jakub Schwan
Anotace

Cílem této práce bylo analyzovat a implementovat detekci duplicitního pokrytí testů jako součást open source nástroje pro získání pokrytí testovaných kódů a odpovídajícím způsobem reprezentovat výsledky nalezených duplicit. Výsledek této práce by měl pomáhat vývojářům a testrům optimalizovat jejich testy.

Abstract

The thesis aims to analyze and implement detection of duplicate tests coverage as part of the open sourcing tool for tests code coverage and to represent the results of founded duplications appropriately. The result of this work should help developers and testers to optimize their test runs.

Zadání práce

With increasing number of tests, their execution time increases as well. Currently, various tools provide metrics of test code coverage. These metrics, however, do not help identify duplicate test coverage, that leads only to an unnecessary increase of test execution time without any benefit to effective code coverage. Information about duplicate coverage and execution time of duplicate tests would be a valuable help for subsequent refactoring of test code base.

The objective of this thesis is to design and implement an enhancement of a well-known open-source code coverage tool for Java that will identify duplicate tests.

  • Explore existing open-source code coverage tools for Java and choose one for implementation of the enhancement
  • Explore a data file format the chosen code coverage tool uses for keeping code coverage data
  • Extend the data file format to include data about
  • Caller (test invoking the piece of code*)
  • Enhance the code coverage tool to store information described in point 3
  • Enhance the tool’s reporting capabilities to present information about
  • Duplicate code coverage
  • Time spent in running tests
  • Let be the piece of code either line, branch, method, class,… of the system under test.
Práce zkontrolována:
4. 2. 2019 08:02, Mgr. Marek Grác, Ph.D., učo 50728
Jazyk práce
angličtina angličtina
Termín obhajoby
8. 2. 2019
Práce byla úspěšně obhájena

Vedoucí

Mgr. Marek Grác, Ph.D., učo 50728
ÚČJ FF MU

Oponent

RNDr. Dušan Klinec, Ph.D., učo 325219
KPSK FI MU

Konzultant

Radovan Synek
Red Hat Czech, s.r.o.

Masarykova univerzita Fakulta informatiky
Studijní program
Aplikovaná informatika
  • Přidání souboru

    Soubor nebo složku lze nahrát pomocí tlačítka Přidat.
  • Další operace se soubory

    Podrobnosti lze zjistit označením příslušného řádku.
  • Pohled pro experty

    Pro častou práci je možné zvolit režim Více možností.
  • Vyhledávání souborů

    Vyhledávaný výraz můžete zadat přímo do adresního řádku.
  • Rychlý přístup k souborům

    Pomocí funkce Nedávné je možné se rychle vrátit k právě prohlíženým souborům. Oblíbené soubory je také možné označit Hvězdičkou.