Unit Testing in ASP Revisited: Language and Test-Driven Development Environment

Giovanni Amendola, Tobias Berei, Giuseppe Mazzotta, Francesco Ricca
1/4/2024
cs.SEcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Unit testing frameworks are nowadays considered a best practice, included in almost all modern software development processes, to achieve rapid development of correct specifications. Knowledge representation and reasoning paradigms such as Answer Set Programming (ASP), that have been used in industry-level applications, are not an exception.

Show full abstract

Indeed, the first unit testing specification language for ASP was proposed in 2011 as a feature of the ASPIDE development environment. Later, a more portable unit testing language was included in the LANA annotation language. In this paper we revisit both languages and tools for unit testing in ASP. We propose a new unit test specification language that allows one to inline tests within ASP programs, and we identify the computational complexity of the tasks associated with checking the various program-correctness assertions. Test-case specifications are transparent to the traditional evaluation, but can be interpreted by a specific testing tool. Thus, we present a novel environment supporting test driven development of ASP programs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{amendola2024unit,
  title  = {Unit Testing in ASP Revisited: Language and Test-Driven Development Environment},
  author = {Giovanni Amendola and Tobias Berei and Giuseppe Mazzotta and Francesco Ricca},
  year   = {2024},
  eprint = {2401.02153},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.02153v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.02153.svg)](https://codeofpaper.com/paper/2401.02153)

Discussion