当前位置: 动力学知识库 > 问答 > 编程问答 >

ruby - Mark a rails TestUnit test as a TODO?

问题描述:

Is there a way to basically mark a TestUnit test as a "todo"? I thought I could do it by using pending at the top of the test, but that still runs the test (and thus it's red). I'd like to basically do the same thing, but not actually run the test (just skip over it).

Does anybody know of a way to do this?

Thanks!

网友答案:

if these are test case stubs, you could just put assert true as the only assertion and a puts in the test to describe what needs to be done. this of course wouldn't help if your tests have failing assertions unless you comment them out.

分享给朋友:
您可能感兴趣的文章:
随机阅读: