通过游戏化 IntelliJ 改善测试行为
Improving Testing Behavior by Gamifying IntelliJ
AI总结:
本文提出 IntelliGame,一个 IntelliJ 的游戏化插件,通过多级成就系统激励开发者改善测试行为;实验表明,受激励的开发者编写更多测试、获得更高覆盖率与变异分数,并更早完成功能。
摘要:
测试是软件开发的重要方面,但不幸的是,它经常被忽视。虽然测试质量分析(如代码覆盖率或变异分析)能告知开发者其测试的质量,但这类报告在持续集成或代码审查期间仅被偶尔查看(如果确实被考虑的话),且其对开发者测试行为的影响往往微乎其微。为了真正影响开发者行为,或许有必要直接在开发者的编程环境中,在他们编码时激励他们。我们引入了 IntelliGame,这是一个针对流行的 IntelliJ Java 集成开发环境的游戏化插件,它通过一个多级成就系统奖励开发者的积极测试行为:总共 27 个不同的成就,每个都有递增的等级,当开发者表现出值得称赞的测试行为时提供肯定性反馈,并提供激励以继续和改善这种行为。一项包含 49 名参与者、给定 Java 编程任务的控制实验揭示了 IntelliGame 所引发的测试行为的显著差异:受到激励的开发者编写更多测试,达到更高的覆盖率和变异分数,更频繁地运行测试,并更早地实现功能。
英文摘要:
Testing is an important aspect of software development, but unfortunately, it is often neglected. While test quality analyses such as code coverage or mutation analysis inform developers about the quality of their tests, such reports are viewed only sporadically during continuous integration or code review, if they are considered at all, and their impact on the developers' testing behavior therefore tends to be negligible. To actually influence developer behavior, it may rather be necessary to motivate developers directly within their programming environment, while they are coding. We introduce IntelliGame, a gamified plugin for the popular IntelliJ Java Integrated Development Environment, which rewards developers for positive testing behavior using a multi-level achievement system: A total of 27 different achievements, each with incremental levels, provide affirming feedback when developers exhibit commendable testing behavior, and provide an incentive to further continue and improve this behavior. A controlled experiment with 49 participants given a Java programming task reveals substantial differences in the testing behavior triggered by IntelliGame: Incentivized developers write more tests, achieve higher coverage and mutation scores, run their tests more often, and achieve functionality earlier.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。