Context
As said earlier in 2012, see the links below, I like to know if my Rails views are covered in my / cucs specs. I know that in 2012 the answer was that there was no solution. I was wondering if there is a solution in 2014? I searched the Internet and did not find much, so I am afraid that the answer will be the same.
Motivation
I want to know if my cucumber functions cover all parts of the API (in this case, the graphical interface). When I add GUI functionality (new view, button, etc.), but for some reason I forget to add corn to it, I want to be notified. So itβs not so much that I want to cover everything in my views, but I want me to unwittingly forget to add a cell for new custom functions. Consequently, the likelihood that the code does not work in production is reduced.
Study
I found the following links mentioned above:
- How to check code coverage for ERB Rails templates?
- How to get coverage for view specifications using rspec, rails and simplecov?
A potentially interesting approach I want to explore:
ruby ruby-on-rails ruby-on-rails-3 rspec
Ax
source share