Rails: November 2006 Archives

hoe 1.1.4 Released

| | Comments (0)

hoe version 1.1.4 has been released!

sudo gem install hoe

http://rubyforge.org/projects/seattlerb/
http://seattlerb.rubyforge.org/hoe/

Hoe is a simple rake/rubygems helper for project Rakefiles. It generates all the usual tasks for projects including rdoc generation, testing, packaging, and deployment.

Tasks Provided:

  • announce - Generate email announcement file and post to rubyforge.
  • audit - Run ZenTest against the package
  • check_manifest - Verify the manifest
  • clean - Clean up all the extras
  • debug_gem - Show information about the gem.
  • default - Run the default tasks
  • docs - Build the docs HTML Files
  • email - Generate email announcement file.
  • install - Install the package. Uses PREFIX and RUBYLIB
  • install_gem - Install the package as a gem
  • multi - Run the test suite using multiruby
  • package - Build all the packages
  • post_news - Post announcement to rubyforge.
  • publish_docs - Publish RDoc to RubyForge
  • release - Package and upload the release to rubyforge.
  • ridocs - Generate ri locally for testing
  • test - Run the test suite. Use FILTER to add to the command line.
  • test_deps - Show which test files fail when run alone.
  • uninstall - Uninstall the package.

See class rdoc for help. Hint: ri Hoe

Changes:

= 1.1.4 2006-11-12

  • Added needtar and needzip to customize package requirements. Stupid windoze.
  • Extended spec_extras to take procs as values. Passes in named parameter.
  • Removed test from require_paths. I thought I already parameterized this. :/

http://rubyforge.org/projects/seattlerb/
http://seattlerb.rubyforge.org/hoe/

ZenTest 3.4.2 Released

| | Comments (1)

ZenTest version 3.4.2 has been released! Between this and today's Hoe release with test_deps should fix all issues with autotest and rake test disagreeing.

ZenTest provides 4 different tools and 1 library: zentest, unit_diff, autotest, multiruby, and Test::Rails.

ZenTest scans your target and unit-test code and writes your missing code based on simple naming rules, enabling XP at a much quicker pace. ZenTest only works with Ruby and Test::Unit.

unit_diff is a command-line filter to diff expected results from actual results and allow you to quickly see exactly what is wrong.

autotest is a continous testing facility meant to be used during development. As soon as you save a file, autotest will run the corresponding dependent tests.

multiruby runs anything you want on multiple versions of ruby. Great for compatibility checking!

Test::Rails helps you build industrial-strength Rails code.

Changes:

3.4.2 / 2006-11-09

  • 2 minor enhancements:
    • Add TextHelper for pluralize.
    • Add deny_nil to Test::Rails.
  • 7 bug fixes:
    • Fixed testhelp's Flash. It's is a module. Oops...
    • Don't run utilauditassertassigned if tests didn't pass, results will be bogus.
    • Fixed AssertionsTest names to match what autotest expects.
    • Fixed bug where denyincludes failed for Symbol keys.
    • Switched autotest to use require instead of load... Why??? I don't know!!
    • Fixed a minor but annoying whitespace difference in unitdiff.
    • Switched argument order of assertincludes and denyincludes to match Test::Unit convention.

hoe 1.1.3 Released

| | Comments (0)

Hoe version 1.1.3 has been released! Now you can test your missing test dependencies for free! Switch to hoe and patch up those tests (and make autotest happy with your tests again)!

Hoe is a simple rake/rubygems helper for project Rakefiles. It generates all the usual tasks for projects including rdoc generation, testing, packaging, and deployment.

Tasks Provided:

  • announce - Generate email announcement file and post to rubyforge.
  • audit - Run ZenTest against the package
  • check_manifest - Verify the manifest
  • clean - Clean up all the extras
  • debug_gem - Show information about the gem.
  • default - Run the default tasks
  • docs - Build the docs HTML Files
  • email - Generate email announcement file.
  • install - Install the package. Uses PREFIX and RUBYLIB
  • install_gem - Install the package as a gem
  • multi - Run the test suite using multiruby
  • package - Build all the packages
  • post_news - Post announcement to rubyforge.
  • publish_docs - Publish RDoc to RubyForge
  • release - Package and upload the release to rubyforge.
  • ridocs - Generate ri locally for testing
  • test - Run the test suite. Use FILTER to add to the command line.
  • test_deps - Show which test files fail when run alone.
  • uninstall - Uninstall the package.

See class rdoc for help. Hint: ri Hoe

Changes:

1.1.3 2006-11-09

  • Added test_deps, now you can automatically discover test dependency ommisions.
  • Added ext support! Build C extensions with hoe!
  • Gemspec uses testall.rb or result of testglobs. Tweak those tests.
  • Now uses https to login to rubyforge. Rubyforge crackers beware!
  • Fixed doco and automated updating of it.
  • Added rdoc_pattern. Go doco go!

rake passes but autotest fails?

| | Comments (2)

Fix Your Dependencies!!!

Yipstar finally provided me a producible test case for the situation a number of people have told me about but couldn't boil down. The whole thing is so dead simple. That is why I think I missed it this whole time:

rake:

ruby -e "require 'test_a'; require 'test_b'; ..."

autotest:

ruby -e "...; require 'test_b'; require 'test_a'"

If your tests break by simply changing the order in which they load then you have dependency issues! Every single test file you have should be able to run independently of all others (which is a damn powerful tool to have in combination with -n "/regex/").

(As an aside, I worked with yipstar and we got his tests all patched up and autotest still had a problem because it uses load, not require... no clue... Eric and I are going to look into that tomorrow)

Some of you will want me to "fix autotest"... BAH! Autotest isn't broken! Your tests are! I will add another task to Hoe that will help point out all test files that don't pass independently so you can go and patch up your tests.

% rake test_deps
Dependency Issues: test/test_a.rb
Dependency Issues: test/test_c.rb
...

We should have a release later today for both ZenTest and Hoe with new testy goodness.

About this Archive

This page is a archive of entries in the Rails category from November 2006.

Rails: October 2006 is the previous archive.

Rails: December 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.1