This post originated from an RSS feed registered with Ruby Buzz
by Jamis Buck.
Original Post: Net::SSH: checked in!
Feed Title: the buckblogs here
Feed URL: http://weblog.jamisbuck.org/blog.cgi/programming/index.rss
Feed Description: Jamis Buck's corner of the blogging universe. Mostly about ruby, but includes ramblings on a variety of topics.
I’ve checked in the new-and-improved Net::SSH, so those of you that want to see it, knock yourselves out. I feel pretty good about it. I think it demonstrates (among other things) how dependency injection can help manage complex applications.
Unit tests (and integration tests) are all implemented:
-> rake test_all
(in /home/jgb3/cvs/net-ssh)
ruby18 -Ilib -e0 -rtest/ALL-TESTS -- -- -i
Loaded suite -e
Started
.............................................................................
.............................................................................
.............................................................................
.............................................................................
.............................................................................
.............................................................................
...............
Finished in 32.595861 seconds.
477 tests, 2490 assertions, 0 failures, 0 errors
Code coverage of the tests still needs some work to get it to 100%, but considering that prior versions of Net::SSH had almost no unit tests at all, I think the current coverage of 92% is hard to knock. (The coverage is probably even better than that, due to limitations in how accurately rcov parses Ruby source files.)