一切变绿后,我如何让autospec/test不运行完整的测试套件? [英] How can I have autospec/test not run the full test suite after everything goes green?

查看:90
本文介绍了一切变绿后,我如何让autospec/test不运行完整的测试套件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

twitter 中的waloeiii相同的问题:

Same question as waloeiii in twitter:

我如何不运行自动检查/测试 一切之后的完整测试套件 变绿了吗?我写的下一个测试将 是红色的!

How can I have autospec/test not run the full test suite after everything goes green? The next test I write will be red!

我宁愿手动运行完整的测试套件.

I'd rather run the full test suite manually.

顺便说一句,我尝试添加一个失败的规范:

By the way, I tried adding a failing spec:

it "should flunk" do
  flunk
end

但是当感觉到时autospec似乎会忽略它.

but autospec seems to ignore it when it feels like it.

推荐答案

有点晚了,但是我也在寻找这个,所以以为我会发布我的解决方案:

Bit late but I was looking for this as well so thought I'd post my solution:

在〜/.autotest中添加以下内容:

Add the following to ~/.autotest:

class Autotest
  def rerun_all_tests
  end
end

这篇关于一切变绿后,我如何让autospec/test不运行完整的测试套件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆