Rails命令有什么区别:--no-test-framework,--skip-test-unit和-T? [英] What is the difference in Rails commands: --no-test-framework, --skip-test-unit, and -T?

查看:121
本文介绍了Rails命令有什么区别:--no-test-framework,--skip-test-unit和-T?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的印象是,这三个都是一样的,但现在我看着它,似乎他们都是不同的。

I was under the impression that all three of these were the same, but now that I look into it, it seems they are all different.

我是一个Rails新手,我试图找到我自己,但我不能通过搜索任何好的文档。

I am a Rails novice and I tried to figure this out on my own, but I cannot any good documentation on this by searching.

推荐答案

根据 Rails API
此讨论主题

两者在初始创建项目(rails new)时使用 - skip-test-unit 选项,而 - no-test-framework 可用于以后的生成器命令(rails generate)。

both -T and the --skip-test-unit options are to be used when initially creating the project (rails new), whereas the --no-test-framework is available to later generator commands(rails generate).

这篇关于Rails命令有什么区别:--no-test-framework,--skip-test-unit和-T?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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