Código-fonte ou Casos de Teste: onde e a quem devem?

  • Diogo Loiola UESPI
  • Alcemir Santos UESPI

Resumo


Dívida Técnica (DT) se referem às tarefas por fazer durante desenvolvimento e evolução de testes, a exemplo dos TODOs esquecidos pelo código. É possível identificar esta DT através da mineração de comentários. No entanto, as soluções identificadas consideram o repositório como um único artefato e desconsideram as diferenças entre os artefatos de código-fonte e casos de teste. Neste artigo resolveu-se explorar esta diferença. Utilizou-se a ferramenta EXCOMMENT para minerar dívidas em repositórios de código aberto. Após as analises, concluiu-se que existe diferença na frequência dos tipos de DT, mas há um padrão quanto à distribuição dos tipos de DT.

Referências

Alves, N. S., Mendes, T. S., de Mendonça, M. G., Spínola, R. O., Shull, F., and Seaman, C. (2016). Identification and management of technical debt: A systematic mapping study. Information and Software Technology, 70:100–121.

Avgeriou, P., Kruchten, P., Ozkaya, I., and Seaman, C. (2016). Managing technical debt in software engineering (dagstuhl seminar 16162). In Dagstuhl Reports, volume 6. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik.

de O. Passos, A. F., de Freitas Farias, M. A., de Mendonça Neto, M. G., and Spínola, R. O. (2018). A study on identification of documentation and requirement technical debt through code comment analysis. In Proceedings of the 17th Brazilian Symposium on Software Quality, pages 21–30.

Guo, Y. and Seaman, C. (2011). A portfolio approach to technical debt management. In Proceedings of the 2nd Workshop on Managing Technical Debt, pages 31–34.

Kagdi, H., Collard, M. L., and Maletic, J. I. (2007). A survey and taxonomy of approaches for mining software repositories in the context of software evolution. Journal of software maintenance and evolution: Research and practice, 19(2):77–131.

Maldonado, E. d. S. and Shihab, E. (2015). Detecting and quantifying different types of self-admitted technical debt. In 2015 IEEE 7th International Workshop on Managing Technical Debt (MTD), pages 9–15. IEEE.

Mendes, T. S., Gomes, F. G., Gonçalves, D. P., Mendonça, M. G., Novais, R. L., and

Spínola, R. O. (2019). Visminertd: a tool for automatic identification and interactive monitoring of the evolution of technical debt items. Journal of the Brazilian Computer Society, 25(1):2.

NETO, A. (2007). Introdução a teste de software. Engenharia de Software Magazine, 1:22.

Spínola, R. O., Vetrò, on Managing Technical Debt (MTD), pages 1–7. IEEE.

Wohlin, C., Runeson, P., Höst, M., Ohlsson, M. C., Regnell, B., and Wesslén, A. (2012). Experimentation in software engineering. Springer Science & Business Media.
Publicado
10/09/2020
LOIOLA, Diogo; SANTOS, Alcemir. Código-fonte ou Casos de Teste: onde e a quem devem?. In: ESCOLA REGIONAL DE COMPUTAÇÃO DO CEARÁ, MARANHÃO E PIAUÍ (ERCEMAPI), 8. , 2020, Evento Online. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2020 . p. 117-124. DOI: https://doi.org/10.5753/ercemapi.2020.11475.