metric_fu: A Ruby Gem for Easy Metric Report Generation

Metric_fu is a set of rake tasks that make it easy to generate metrics reports. It uses Saikuro, Flog, Flay, Rcov, Reek, Roodi, Subversion, Git, and Rails built-in stats task to create a series of reports. It's designed to integrate easily with CruiseControl.rb by placing files in the Custom Build Artifacts folder.

mdub's sham_rack at master - GitHub

Or, you can test your Rack application (or Sinatra, or Rails, or Merb) using arbitrary HTTP client libraries, to check interoperability.

A List Apart: Articles: Unwebbable

An example of the conundrum of transferring print documents to the web, one that has become legendary in some circles, is the film screenplay.

jasonm's parallel_specs at master - GitHub

Rake tasks to run specs and tests in parallel, to use multiple CPUs and speedup test runtime.

On Being A Journeyman Software Craftsman: Test-first and Test-driven conversation with JB Rainsberger

We had a conversation about the fact that the 'TDD is about testing vs TDD is about design" debate that keeps popping up, especially now in the Ruby community.

Celerity | Easy and fast functional test automation for web applications

Celerity is a JRuby wrapper around HtmlUnit – a headless Java browser with JavaScript support. It provides a simple API for programmatic navigation through web applications. Celerity aims at being API compatible with Watir.

Should I test for translated strings?

I brought up the question whether tests should call the translation API when checking for the presence of a string.

citrusbyte's contest at master - GitHub

Write declarative tests using nested contexts without performance penalties. Contest is less than 100 lines of code and gets the job done.

Tracking Down Slow-Running Examples in RSpec » Idol Hands: An Alpha Geek Guide to Ruby on Rails, DIY, and More

Passing the --profile flag to RSpec produces some additional output, namely the running times of the ten slowest examples in your specs.

aanand's deadweight at master - GitHub

Deadweight is RCov for CSS, kind of. Given a set of stylesheets and a set of URLs, it determines which selectors are actually used and reports which can be "safely" deleted.

has_many :bugs, :through => :rails: Make your shoulda tests faster with fast_context

decided to go fixtureless with Shoulda + Factory Girl. All good, except one problem. Slow as fuck tests. So here’s fast_context as a solution for it. fast_context compiles all the ‘should’s within a context into a single test.

Alex Miller - Unit tests are a drop cloth

Unit tests are to refactoring like a drop cloth is to painting. Both feel like more work at first but ultimately save you time by allowing you to move faster.

thumblemonks's riot at master - GitHub

Riot differs primarily in that it does not rerun setup for each test in a context.

http://mockito.org/

Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API. Mockito doesn't give you hangover because the tests are very readable and they produce clean verification errors.

rest-client - Project Hosting on Google Code

RESTClient is a Java application to test RESTful webservices. It can be used to test variety of HTTP communications.

JustinFrench.com: Learn how to test your code

Eventually you’ll forget that you used to spend hours testing your code in a browser, and start complaining that your automated tests are taking minutes to run! You’ll have intense debates with co-workers about what to test and how to test it properly. You’ll start writing the test first to expose the bug or missing feature, then write the code required to pass the test.

Unit Testing Achievements

  • Unlock achievements for running your test suite!

RUBOTO

This is a group devoted to making JRuby a first-class application language for Android.

CoffeeScript

Imagine all the syntactical delights of Ruby and Haml for your JavaScript. You write in a nice language, but get normal JavaScript at runtime. All whilst having full access to 3rd-party JavaScript libraries (jQuery, PrototypeJS), debugging support (it becomes pure, readable JavaScript), existing support from test suites (it’s normal JavaScript) and growing support from various text editors (TextMate, Vim, Emacs).

Indeterminate Radio Buttons | CSS-Tricks

The most popular option should be checked. If choosing nothing is valid, then a radio group isn’t a good fit because the user cannot easily revert the group to its indeterminate state

jsPlumb demo

jsPlumb can visually connect elements together with curved (or straight) lines. The demo has examples of Bezier curves and straight lines.

Localized external services - GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS

ShamRack mounts a Rack app locally, just for your tests. It goes one further: it “mounts” it using Net::HTTP such that requests to the Rack app never hit any network.