ITeye博客

autotest+cucumber无限循环测试的BUG解决

ZoOL · 2010-08-12 05:52 · test · 编程语言 · Markdown

在使用AUTOFEATURE=true autotest测试项目时, cucumber测试无限循环报错。 原因在于cucumber测试时生成了rerun.txt,所以解决方法就是编辑~/.autotest,加上下面的代码

Autotest.add_hook :initialize do |at|
    at.add_exception(%r{^\./\.git})
    at.add_exception(%r{^\./db})
    at.add_exception(%r{^\./log})
    at.add_exception(%r{^\./tmp})
    at.add_exception(%r{^\./rerun.txt})
    at.add_exception(%r{^\./Gemfile.lock})
  end

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。