简体   繁体   English

如何忽略Rubymine中待处理的rspec测试?

[英]How do I ignore pending rspec tests in Rubymine?

I have many pending tests in my application, and they make it hard to view a failed test in Rubymine 我的应用程序中有许多待定测试,因此很难在Rubymine中查看失败的测试 rubymine .

Is there a way, either through rspec command line options or Rubymine settings, to disable running pending tests entirely? 是否可以通过rspec命令行选项或Rubymine设置完全禁用正在运行的未决测试? Or at least not show them in the view? 或至少不在视图中显示它们? I know of the button to not show passing tests, but that doesn't help with pending tests. 我知道不显示通过测试的按钮,但这对未决测试没有帮助。

Rspec 3.1? Rspec 3.1? Pending's meaning has changed... try skipped instead? 待处理的含义已更改...尝试跳过吗?

From: https://www.relishapp.com/rspec/rspec-core/v/3-1/docs/pending-and-skipped-examples 来自: https : //www.relishapp.com/rspec/rspec-core/v/3-1/docs/pending-and-skipped-examples

An example can either be marked as skipped, in which is it not executed, or pending in which it is executed but failure will not cause a failure of the entire suite. 一个示例可以标记为已跳过(不执行),也可以标记为已执行(未决),但是失败不会导致整个套件的失败。 When a pending example passes (ie the underlying reasons for it being marked pending is no longer present) it will be marked as failed in order to communicate to you that it should no longer be marked as pending. 当挂起的示例通过时(即不再存在被标记为挂起的根本原因),该示例将被标记为失败,以便与您通信,不再将其标记为挂起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM