Sie befinden Sich nicht im Netzwerk der Universität Paderborn. Der Zugriff auf elektronische Ressourcen ist gegebenenfalls nur via VPN oder Shibboleth (DFN-AAI) möglich. mehr Informationen...
Ergebnis 1 von 211

Details

Autor(en) / Beteiligte
Titel
A Toolkit for Automated Testing of Dafny
Ist Teil von
  • NASA Formal Methods, 2023, Vol.13903, p.397-413
Ort / Verlag
Switzerland: Springer
Erscheinungsjahr
2023
Quelle
Alma/SFX Local Collection
Beschreibungen/Notizen
  • Dafny is a verification-ready programming language that is executed via compilation to C# and other mainstream languages. We introduce a toolkit for automated testing of Dafny programs, consisting of DUnit (unit testing framework), DMock (mocking framework), and DTest (automated test generation). The main component of the toolkit, DTest, repurposes the Dafny verifier to automatically generate DUnit test cases that achieve desired coverage. It supports verification-specific language features, such as pre- and postconditions, and leverages them for mocking with DMock. We evaluate the new toolkit in two ways. First, we use two open-source Dafny projects to demonstrate that DTest can generate unit tests with branch coverage that is comparable to the expectations developers set for manually written tests. Second, we show that a greedy approach to test generation often produces a number of tests close to the theoretical minimum for the given coverage criterion.
Sprache
Englisch
Identifikatoren
ISBN: 3031331699, 9783031331695
ISSN: 0302-9743
eISSN: 1611-3349
DOI: 10.1007/978-3-031-33170-1_24
Titel-ID: cdi_springer_books_10_1007_978_3_031_33170_1_24
Format

Weiterführende Literatur

Empfehlungen zum selben Thema automatisch vorgeschlagen von bX