[rspec-devel] [ rspec-Feature Requests-8139 ] "not implemented" message for specs yet to be implemented

noreply at rubyforge.org noreply at rubyforge.org
Fri Jan 26 01:32:32 EST 2007


Feature Requests item #8139, was opened at 2007-01-25 06:28
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=8139&group_id=797

Category: runner module
Group: None
Status: Open
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: "not implemented" message for specs yet to be implemented

Initial Comment:
If I am defining the behaviour of a class, I might make a list like this:

Money behaviour:
- should parse
- should add
- should subtract
- should multiply
- should handle division by 0
- should handle conversion

I may not know what all of those mean yet, but that is a starting point. I'd like to be able to put that right into specs and have RSpec tell me that I have yet to implement them:

context "Money behaviour" do
  specify "should parse"
  specify "should add"
  specify "should subtract"
  specify "should multiply"
  specify "should handle division by 0"
  specify "should handle conversion"
end

Note that each specify message has no block. Given some command line option, RSpec would collect these during a spec run and add the count to the summary:

=====
Finished in 3.212354 seconds

647 specifications, 0 failures, 25 not yet implemented
=====

Combined with the --format specdoc (or -fs) option, the report would look like this:

=====
Money behaviour:
- should parse
- should add
- should subtract
- should multiply
- should handle division by 0 (NOT IMPLEMENTED
- should handle conversion (NOT IMPLEMENTED)

Finished in 0.212354 seconds

6 specifications, 0 failures, 2 not yet implemented
=====

This would a great aid in monitoring progress during an iteration.


----------------------------------------------------------------------

Comment By: Wilson Bilkovich (wilson)
Date: 2007-01-26 01:32

Message:
Duplicate? :)
http://rubyforge.org/tracker/index.php?func=detail&aid=6396&group_id=797&atid=3152

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=8139&group_id=797


More information about the rspec-devel mailing list