Property-Based Testing requires the programmer to writesuitablegenerators, i.e., programs that generate (possibly in a randomway) input values for which the program under test should be run. How-ever, the process of writing generators is quite a costly, error-prone ac-tivity. In the context of Property-Based Testing of Erlang programs, wepropose an approach to relieve the programmer from the task of writinggenerators. Our approach allows the automatic, efficient generation ofinput test values that satisfy a given specification. In particular, we haveconsidered the case when the input values are data structures satisfy-ing complex constraints. That generation is performed via the symbolicexecution of the specification using constraint logic programming.

Property-Based Test Case Generators for Free

De Angelis E;Fioravanti F;Pettorossi A;Proietti M
2019

Abstract

Property-Based Testing requires the programmer to writesuitablegenerators, i.e., programs that generate (possibly in a randomway) input values for which the program under test should be run. How-ever, the process of writing generators is quite a costly, error-prone ac-tivity. In the context of Property-Based Testing of Erlang programs, wepropose an approach to relieve the programmer from the task of writinggenerators. Our approach allows the automatic, efficient generation ofinput test values that satisfy a given specification. In particular, we haveconsidered the case when the input values are data structures satisfy-ing complex constraints. That generation is performed via the symbolicexecution of the specification using constraint logic programming.
2019
Istituto di Analisi dei Sistemi ed Informatica ''Antonio Ruberti'' - IASI
Inglese
13th International Conference, TAP 2019, Held as Part of the Third World Congress on Formal Methods 2019, Porto, Portugal, October 9–11, 2019, Proceedings
13th International Conference on Tests and Proofs (TAP 2019)
186
206
21
9783030311575
http://dx.doi.org/10.1007/978-3-030-31157-5_12
Sì, ma tipo non specificato
09/10/2019-11/10/2019
Property-Based Testing
Test Case Generation
Erlang
Constraint Logic Programming
Testing
5
restricted
De Angelis, E; Fioravanti, F; Palacios, A; Pettorossi, A; Proietti, M
273
info:eu-repo/semantics/conferenceObject
04 Contributo in convegno::04.01 Contributo in Atti di convegno
File in questo prodotto:
File Dimensione Formato  
2019-DFPPP_TAP19.pdf

solo utenti autorizzati

Descrizione: Property-Based Test Case Generators for Free
Tipologia: Documento in Post-print
Licenza: NON PUBBLICO - Accesso privato/ristretto
Dimensione 354.58 kB
Formato Adobe PDF
354.58 kB Adobe PDF   Visualizza/Apri   Richiedi una copia

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14243/364502
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 7
  • ???jsp.display-item.citation.isi??? ND
social impact