2010 · 13 citations · 15 references
ComputingComputer ScienceFormal MethodsProgramming LanguagesTest DevelopmentConstraint SatisfactionConstraint SolvingSoftware TestingAutomated Reasoning With ConstraintsAutomated Test GenerationCoverage CriteriaHigher-order FunctionsProperty-based TestingTest Case GenerationTest Data GenerationTest Generation
Property-based testing implies selecting test data satisfying coverage criteria on user-specified properties. However, current automatic test data generation techniques adopt direct generate-and-test approaches for this task. In FocalTest, a testing tool designed to generate test data for programs and properties written in the functionnal language Focal, test data are generated at random and rejected when they do not satisfy selected coverage criteria. In this paper, we improve FocalTest with a test-and-generate approach, through the usage of constraint reasoning. A particular difficulty is the generation of test data satisfying MC/DC on the precondition of a property, when it contains function calls with pattern matching and higher-order functions. Our experimental results show that a non-naive implementation of constraint reasoning on these constructions outperform traditional generation techniques when used to find test data for testing properties.
15
Patrice Godefroid, Nils Klarlund, Koushik Sen · ACM SIGPLAN Notices · 2005 · 2.1K citations
Koushik Sen, Darko Marinov, Gul Agha · 2005 · 1.7K citations
Koen Claessen, John Hughes · ACM SIGPLAN Notices · 2011 · 1K citations