Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference in Rails commands: --no-test-framework, --skip-test-unit, and -T?

Tags:

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.

like image 282
user Avatar asked Sep 30 '13 23:09

user


People also ask

Are jest tests unit tests?

Jest is an open source JavaScript unit testing framework, used by Facebook to test all JavaScript code including React applications.

What should I test with jest?

Jest is a JavaScript testing framework built by Facebook and primarily designed for React-based applications, but is also used with Babel, JavaScript, Node, Angular, and Vue. It can be used to test NestJS, Next. js, and GraphQL, too.

What is jest describe?

Use describe to create blocks that group several related tests together. Depending on your testing approach, you might have a describe for each individual component in your application, each module, or each class. Whichever approach you take, make sure it groups related tests together.


1 Answers

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

like image 79
bhawkeswood Avatar answered Sep 20 '22 15:09

bhawkeswood