Blogs (61) >>
Fri 20 Jul 2018 11:30 - 12:00 at Berlin - Morning Session Chair(s): Chris Laffra

Unit tests are labor-intensive to write and maintain. In this talk we look into how well unit tests for a target software package can be extracted from the execution traces of client code. Our objective is to reduce the effort involved in creating test suites while minimizing the number and size of individual tests, and maximizing coverage. To evaluate the viability of our approach, we have chosen R, a programming language that is popular for data science applications. The challenges presented by R are its extreme dynamism, coerciveness, and lack of types. This combination decrease the efficacy of traditional test extraction techniques. We present Genthat, a tool developed over the last couple of years to non-invasively record execution traces of R programs and extract unit tests from those traces. We have carried out an evaluation on 1,545 packages comprising 1.7M lines of code. The tests extracted by Genthat improved code coverage from original 19% to 53%. The running time of the generated tests is 1.9 times faster than the code they came from.

Fri 20 Jul
Times are displayed in time zone: (GMT+02:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

11:00 - 12:30: ISAGT 2018 - Morning Session at Berlin
Chair(s): Chris LaffraUber Technologies
isagt-2018-papers11:00 - 11:05
Day opening
Chris LaffraUber Technologies
isagt-2018-papers11:05 - 11:30
Chris LaffraUber Technologies
isagt-2018-papers11:30 - 12:00
Filip KrikavaCzech Technical University
isagt-2018-papers12:00 - 12:30