Litcius/Paper detail

Plain random test generation with PRTest

Thomas R. Lemberger

2020International Journal on Software Tools for Technology Transfer17 citationsDOIOpen Access PDF

Abstract

Abstract Automatic test-suite generation tools are often complex and their behavior is not predictable. To provide a minimum baseline that test-suite generators should be able to surpass, we present PRTest , a random black-box test-suite generator for C programs: To create a test, PRTest natively executes the program under test and creates a new, random test value whenever an input value is required. After execution, PRTest checks whether any new program branches were covered and, if this is the case, the created test is added to the test suite. This way, tests are rapidly created either until a crash is found, or until the user aborts the creation. While this naive mechanism is not competitive with more sophisticated, state-of-the-art test-suite generation tools, it is able to provide a good baseline for Test-Comp and a fast alternative for automatic test-suite generation for programs with simple control flow. PRTest is publicly available and open source.

Topics & Concepts

Test suiteComputer scienceSuiteTest (biology)Random testingTest harnessTest Management ApproachTest caseGenerator (circuit theory)Model-based testingOperating systemProgramming languagePower (physics)Software developmentSoftwareMachine learningRegression analysisBiologyQuantum mechanicsSoftware constructionArchaeologyHistoryPhysicsPaleontologySoftware Testing and Debugging TechniquesSoftware Reliability and Analysis ResearchSoftware Engineering Research
Plain random test generation with PRTest | Litcius