arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1710.07980cs.SE
收藏

全部测试,值得吗?在JHipster Web开发堆栈上评估配置采样

Test them all, is it worth it? Assessing configuration sampling on the JHipster Web development stack

Axel Halin, Alexandre Nuttinck, Mathieu Acher, Xavier Devroey, Gilles Perrouin, Benoit Baudry

摘要:

许多测试可配置软件系统的方法都是从同一个假设开始的:不可能测试所有的配置。这激发了可变性感知抽象和采样技术的定义,以应对大的配置空间。然而,如果这样做所需的努力仍然可以接受,则没有理论障碍阻止通过简单地列举它们来对所有配置进行详尽测试。不仅如此:我们相信,通过系统地、详尽地测试一个可配置系统,我们可以学到很多东西。在这个案例研究中,我们报告了有史以来第一次努力测试所有可能的配置的行业实力,开源的可配置软件系统,JHipster,一个流行的代码生成器的Web应用程序。我们为JHipster的26,000多个配置构建了一个测试框架,使用了80台机器的集群,在4个晚上总共使用了4,376小时(182天)的CPU时间。我们发现,35.70%的配置失败,我们确定的功能相互作用,导致错误。我们表明,采样策略(如相异度和2明智的):(1)是更有效地找到故障比12个默认配置中使用的JHipster连续集成;(2)可能是太昂贵,超过可用的测试预算。我们将这种定量分析与JHipster主要开发人员的定性评估相结合。

英文摘要:

Many approaches for testing configurable software systems start from the same assumption: it is impossible to test all configurations. This motivated the definition of variability-aware abstractions and sampling techniques to cope with large configuration spaces. Yet, there is no theoretical barrier that prevents the exhaustive testing of all configurations by simply enumerating them, if the effort required to do so remains acceptable. Not only this: we believe there is lots to be learned by systematically and exhaustively testing a configurable system. In this case study, we report on the first ever endeavour to test all possible configurations of an industry-strength, open source configurable software system, JHipster, a popular code generator for web applications. We built a testing scaffold for the 26,000+ configurations of JHipster using a cluster of 80 machines during 4 nights for a total of 4,376 hours (182 days) CPU time. We find that 35.70% configurations fail and we identify the feature interactions that cause the errors. We show that sampling strategies (like dissimilarity and 2-wise): (1) are more effective to find faults than the 12 default configurations used in the JHipster continuous integration; (2) can be too costly and exceed the available testing budget. We cross this quantitative analysis with the qualitative assessment of JHipster's lead developers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑