Sha256: fe4db662649836eb2515d66d37817d1f8f34c312927d1b85f8b3f157bb4ea7b3
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
= TURN -- Test::Unit Reporter (New) TURN is a new way to view Test::Unit results. With longer running tests, it can be very frustrating to see a failure (....F...) and then have to wait till all the tests finish before you can see what the exact failure was. TURN displays each test on a separate line with failures being displayed immediately instead of at the end of the tests. If you have the 'facets' gem installed, then TURN output will be displayed in wonderful technicolor (but only if your terminal supports ANSI color codes). Well, the only colors are green and red, but that is still color. == Usage === Command Line You can use the *turn* executable in place of the *ruby* interpreter. turn -Ilib test/test_all.rb This will invoke the ruby interpreter and automatically require the turn formatting library. All command line arguments are passed "as is" to the ruby interpreter. === Require Simply require the TURN package from within your test suite. require 'turn' This will configure Test::Unit to use TURN formatting for displaying test restuls. A better line to use, though, is the following: begin; require 'turn'; rescue LoadError; end When you distribute your code, the test suite can be run without requiring the end user to install the TURN package. For a Rails application, put the require line into the 'test/test_helper.rb' scipt. Now your Rails tests will use TURN formatting. === Author Tim Pease
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turn-0.2.0 | README.txt |
turn-0.3.0 | README.txt |