Rails code quality tools that I can run in development mode without sharing my code [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I came across https://codeclimate.com.
Super awesome, but I'm working on a project whose code I cannot share with others or Code Climate.
Now I would like to be able to improve my code quality and wonder if anyone can suggest tools that do what codeclimate.com does but locally in development mode, without me having to share my code.

The metric_fu gem seems to be the best option combining all known test tools into 1 an generate a neat report although its not as nice and fully featured as code climate.com

We can use Fog gem which give code complexity at class and method level.
To check code duplications we can use Flay gem.
Both give same result that code climate gives.

Now there's an exact answer: Last year Code Climate released a new platform which includes a command-line interface, Code Climate CLI. It runs entirely on your computer (in a Docker container) and doesn't require a Code Climate account.

Related

Test coverage in rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Not suitable for this site We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Improve this question
Is there any way that can be used to find out the code coverage of a Ruby on Rails application?
In most cases the best code coverage solution for Rails is SimpleCov.
Rcov is quite outdated now, because it doesn't work well with Ruby 1.9 and above.
Also, if you are interested in Mutation testing you should take a look at mutant gem.
The idea is that if code can be changed and your tests do not notice, then either that code isn't being covered or it does not have a speced side effect.
Right now it supports only RSpec. The Minitest integration is still in the works.
Here is a great article about it.
Basically, Rcov and SimpleCov only check line coverage.
Mutation testing takes your code and your tests. It parses the code to the Abstract Syntax Tree. It changes the nodes of the tree (mutates). It does it in memory. As a result we now have a mutant - a mutated version of your code... The idea here is that the tests should kill the mutant. Killing the mutant happens when tests fail for a mutated code. Killing all mutants means that you have a 100% test coverage. It means that you have tests for all of your code details. This means you can safely refactor and your tests are really covering you.
The best two gems out there for test coverage are SimpleCov and Rcov. You can also use coveralls.io for a hosted solution with GitHub support.

Unit testing for iOS projects [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm still relatively new to iOS development and also an absolute stranger to any kind of testing that is not compile, run, and check whatever comes to your mind.
This is obviously a weakness on any developer's profile and I'm decided to get ride of it now that interesting, real projects are coming my way.
In my quest to look for the best approach to go from 0 to 100 as soon (and well) as possible I'm coming to the specialized community to get your feedback.
At the same time I'm asking for your tips I'm also getting into Amazon to look for well-reviewed books on the subject and Google to get the rest. I'm just coming here to gather the feedback of those willing to spare a minute or to so I can probably hit jackpot with a great advise and better plan my learning strategy.
Thats right. For my job testing and test driven development is indispensable.
I often use Java and JUnit, but for Objective-C and XCode I think this screencast is a very good start: http://qualitycoding.org/objective-c-tdd/
Since I watch this screencast I use OCHamcrest and OCMockito (both explaind in this screencast) as well as SenTestingKitAsync for testing asynchronous functions.
I think the Clean Code book is a must have for every developer. There is a chapter about testing.

Is there an inkit.org style diagramming app that will produce a Rails or Node.js skeleton app with scaffolding? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm trying to figure out if there are any applications (SaaS or otherwise) that offer a basic graphical user interface for building out all the necessary scaffolding of a Rails or Node.js app from a flow-chart type of interface?
I remember Visual Studio had something like this for building database structures...why wouldn't there be something that does this for Rails or Node.js?
RailsModels purports to do this, but I find the interface is quite cumbersome.
If you just want to generate the diagrams from existing models for visualization, RailRoad and RubyMine Data Sources Tool can do this. But, neither offer a method for generating models from the GUI.
You are thinking of the Entity Model Designer (or possibly the older dataset designer), and I do not know of any Rails tools that offer similar functionality. As to why, I am not sure. I could comment, but it would be a guess, and probably be flamebait.
https://github.com/preston/railroady
RailRoady, i believe its only > Rails 3 though...

What test harness tool/framework can test concurrent requests in a Rails app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
How can I test my Rails app with N concurrent users?
These simulated users will do some actions like upload/download files, etc.
Are there any frameworks or free tools that support this?
ab(Apache Benchmark) is made for that. Here is an example:
https://github.com/igrigorik/async-rails
I use jMeter, although the UI is a little rough IMO. I ended up sharing a lot of code between my easyb (Groovy-based) specs and a mini-DSL I used to create jMeter config/execution files (XML) so redundancy between specs and load testing was reduced. The same should be doable in Ruby as well.
JMeter allows concurrent testing, ramp-ups, all sorts of stuff. I don't know if it does everything a commercial tool does, but I've used it for a long time on a wide range if apps and it's been, more or less, satisfactory.

webistrano alternatives? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We are looking for a automated remote deployment system for our Rails deployments. Are there any good alternatives to Webistrano. We want try out first and select which will best suit our requirements.
Etsy have open sourced their Deployinator. It uses Sinatra, Capistrano and a little PHP, but you can deploy anything from it.
Strano - GitHub-powered web UI for Capistrano deployment. Works with non-GitHub projects as well.
After long time search, I've started building Gunnery - a real, modern webistrano alternative.
I don't know if it is still relevant but I would like to come up with a different solution. I am building a new deployment tool that does just what you are looking for.
I do not intend to spam my stuff here but since I am building something that could help you...
Anyway, have a look here https://alessiosantocs.github.io/Captain. I'm gathering feedback so if you have any please let me know.

Resources