Ruby On rails项目没有测试

时间:2022-10-15 20:34:37

I know it is not recommended but is there a way to generate/modify an existing project so it doesn't create test files when using generators such as rails generate controller NAME?

我知道不建议这样做,但有没有办法生成/修改现有项目,因此在使用rails生成控制器NAME等生成器时,它不会创建测试文件?

1 个解决方案

#1


19  

ruby script/generate controller Account --no-test-framework

Check out the API.

查看API。

#1


19  

ruby script/generate controller Account --no-test-framework

Check out the API.

查看API。