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
9783030311575
Property-Based Testing
Test Case Generation
Erlang
Constraint Logic Programming
Testing
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 5
  • ???jsp.display-item.citation.isi??? ND
social impact