Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 25 February 2021

Measuring Test Data Uniformity in Acceptance Tests for the FitNesse and Gherkin Notations

Douglas Hiura Longo1, Patrícia Vilain1 & Lucas Pereira da Silva1

Journal of Computer Science, Volume 17, Issue 2, pp. 135–155 · doi.org/10.3844/jcssp.2021.135.155

7,572 accesses3,750 downloads2 citations (Crossref)Metrics
Cite Check for updates

Abstract

This paper presents two metrics designed to measure the data uniformity of acceptance tests in FitNesse and Gherkin notations. The objective is to measure the data uniformity of acceptance tests in order to identify projects with lots of random and meaningless data. Random data in acceptance tests hinder communication between stakeholders and increase the volume of glue code. The main contribution of this paper is the implementation of the proposed metrics. This paper also evaluates the uniformity of test data from several FitNesse and Gherkin projects found on GitHub, as a means to verify if the metrics are applicable. First, the metrics were applied to 18 FitNesse project repositories and 18 Gherkin project repositories. The measurements taken from these repositories were used to present cases of irregular and uniform test data. Then, we have compared the notations from FitNesse and Gherkin in terms of projects and features. In terms of projects, no significant difference was observed, that is, FitNesse projects have a level of uniformity similar to Gherkin projects. However, in terms of features and test documents, there was a significant difference. The uniformity scores of FitNesse and Gherkin features are 0.16 and 0.26, respectively. These uniformity scores are very low, which means that test data for both notations are very irregular. Thus, we can infer that test data are more irregular in FitNesse features than in Gherkin features. The evaluation also shows that 28 of 36 projects (78%) did not reach the minimum recommended measure, i.e., 0.45 of test data uniformity. In general, we can observe that there are still many challenges in improving the quality of acceptance tests, especially in relation to the uniformity of test data.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Longo, D. H., Vilain, P. & da Silva, L. P. (2021). Measuring Test Data Uniformity in Acceptance Tests for the FitNesse and Gherkin Notations. Journal of Computer Science, 17(2), 135–155. https://doi.org/10.3844/jcssp.2021.135.155

Licence
CC BY 4.0
Issue
Volume 17, Issue 2
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
Measuring Test Data Uniformity in Acceptance Tests for the FitNesse and Gherkin NotationsJournal of Computer Science · Volume 17, Issue 2 · pp. 135–155 · CC BY 4.0Download