ruby on rails - What are the major advantages of rspec over test::unit, if any? -


It seems that everyone is using RSPC these days, yet the train now comes bundled with the test: Unit by default

Is there any major advantage of RSPC on the testing unit? It is difficult to get straightforward information on this topic ...

Syntax In these discussions, which are definitely Is subjective, but RSPC provides some useful features which are not found in test / unit, minimum, or their extension libraries. For me, there are three big things:

  1. Readable output (rotate w / helps it, but in order to print the command that you need to copy to run Things that are not as personal examples that failed) In the sensible CTRL-C RSPC-2, when you press CTRL-C, the example running in that moment ends (you can stop CTRL- C can press 2 times), and this happens after running the hook, and you get the same output report that you would otherwise receive. How many times have you seen an F in 50 or so many points before, and there is no indication that which tests actually failed. With RSPC-2, this does not happen.

  2. Metadata associated with each instance and group RSPC to run on the basis of different parameters (location, name, ruby ​​version, command line tag, etc.) to select the examples It also uses the inclusion / extension of modules depending on it.

    There is a lot more to do, but it is to give you an idea. Of course, I am biased, so take my recommendations with a grain of salt.

    FWW, David

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -