首页> 外文会议>IEEE Frontiers in Education Conference >Bug Hide-and-Seek: An Educational Game for Investigating Verification Accuracy in Software Tests
【24h】

Bug Hide-and-Seek: An Educational Game for Investigating Verification Accuracy in Software Tests

机译:错误的捉迷藏:研究软件测试中验证准确性的教育性游戏

获取原文

摘要

This Innovative Practice Full Paper describes a pedagogical technique for introducing unit testing within software engineering courses. The Bug Hide-and-Seek educational game reinforces testing principles by requiring students to develop some correct solutions as well as some other solutions that intentionally contain bugs. While developing the correct and buggy solutions, students also write corresponding tests that should identify whether each solution contains bugs or exhibits acceptable behavior. Consequently, the first goal of the game is to hide a clever bug that will trick other students' tests into passing the implementation, despite the hidden bug. The second goal is to write thorough tests that can accurately differentiate correct from incorrect software behavior. We introduce the motivation, pedagogy, and preliminary analysis of two variations of the Bug Hide-and-Seek game, while comparing their tradeoffs. The between-subject variation considers each student's test suite in its entirety. The within-subject variation requires more sophisticated analysis, but considers each individual function along with its corresponding tests, which provides more granular insight and specific feedback to students. We conducted a pilot study of both variations over two semesters of students (n=87) playing the Bug Hide-and-Seek game. We found that students' test True Positive Rate and True Negative Rate at verifying implementations are both significant predictors of a lack of bugs in their own solution.
机译:本创新实践全文介绍了一种在软件工程课程中引入单元测试的教学技术。 Bug捉迷藏教育游戏通过要求学生开发一些正确的解决方案以及其他故意包含错误的解决方案来加强测试原理。在开发正确且有错误的解决方案时,学生们还要编写相应的测试,以识别每个解决方案是否包含错误或表现出可接受的行为。因此,游戏的首要目标是隐藏一个聪明的bug,尽管存在该bug,但仍会欺骗其他学生的测试以通过实施。第二个目标是编写全面的测试,以准确地区分正确与错误的软件行为。我们介绍了错误捉迷藏游戏的两个变体的动机,教学法和初步分析,同时比较了它们的权衡取舍。主题间的差异会全面考虑每个学生的测试套件。主题内部的变体需要更复杂的分析,但会考虑每个单独的功能及其相应的测试,从而为学生提供更细致的洞察力和特定的反馈。我们在玩Bug捉迷藏游戏的两个学期(n = 87)的学生中对这两种变化进行了初步研究。我们发现,学生在验证实施方案时所测试的“真实肯定率”和“真实否定率”都是他们自己的解决方案中没有错误的重要预测指标。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号