What is the difference in Rails commands: --no-tes

2020-05-19 06:09发布

问题:

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.

I cannot find any good documentation on this by searching.

回答1:

According to Rails API and This Discussion Thread

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).