Re: [rspec-users] Promoting options to heckle?

2007-07-13 Thread Robert Feldt

On 7/12/07, David Chelimsky [EMAIL PROTECTED] wrote:


On 7/12/07, Robert Feldt [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying out RSpec with the heckle option (for mutation testing).


 Problem is that heckle goes into an infinite loop when running it on an
 example. I want to send a --verbose to heckle but can't find a way to
do
 that through the spec binary. Since this is not an uncommon situation
when
 using heckle I would like this to be supported in some way by RSpec.
 Thoughts?



One alternative I thought of is to have a standard way to promote options
to other tools that spec invokes. Along the lines of:

spec --heckle --options-heckle --verbose --branches
MyModule::MyClass#my_method ...

and the argument to --options-heckle (or --options-rcov etc) would simply be
passed along in the call to heckle. This would cover more situations with a
single solution.

Regards,

Robert


Hi Robert,


I can see this working a couple of ways. We've got a -b switch which
results in a complete backtrace showing up. That seems more or less
synonymous with the notion of --verbose, which we don't have
explicitly. So, what if we added a --verbose switch that affected any
other options, like Heckle, or RCov? I think that would be simpler
than trying to come up with targeted --verbose switches.

WDYT?


 Best regards,

 /Robert Feldt


 ___
 rspec-users mailing list
 rspec-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/rspec-users

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users





--
Best regards,

/Robert Feldt
--
PhD, Assistant Professor in Software Engineering
Blekinge Institute of Technology
School of Engineering (APS)
SE-372 25 Ronneby
Sweden

Phone: +46 (0) 457 385 887
Mobile: +46 (0) 733 580 580

Web pages:
Research group: http://www.bth.se/tek/serl/
Research project: http://www.bth.se/besq/
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] they synonym for it?

2007-07-13 Thread David Chelimsky
On 7/13/07, Ashley Moran [EMAIL PROTECTED] wrote:

 On 12 Jul 2007, at 17:20, Anthony Carlos wrote:

  If you guys don't mind, I'm going to create a sample web page with
  this concept on it, stealing from Ashley and David's writings. If
  people like it, perhaps we can get it included in the documentation.

 Do you have a wiki you could use?  If not I could open a public page
 on my company's wiki and you could edit it there - might be easier to
 do collaborative stuff that way.

We don't right now, nor do we have resources to set one up, so if you
can set something up that would be awesome.

Thanks Ashley,
David


 Ashley


 ___
 rspec-users mailing list
 rspec-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/rspec-users

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


[rspec-users] RSpec wiki

2007-07-13 Thread Ashley Moran

On 13 Jul 2007, at 13:07, David Chelimsky wrote:

 We don't right now, nor do we have resources to set one up, so if you
 can set something up that would be awesome.

Ok I cobbled something together on our company wiki (which runs on  
XWiki).  I've created an RSpecCollab space - a space is just a group  
of pages with common permissions - that is publicly viewable but only  
editable by registered users.  It's a bit quirky but the key stuff  
seems to work.  Please let me know if I inadvertently gave the whole  
world access to our corporate secrets :)

URL:  http://www.codeweavers.net/wiki/bin/view/RSpecCollab/WebHome

I've made a few accounts which I will send by email in a sec.  If  
anyone else wants an account just ask and I will set one up.

Ashley


___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] spec for Rails library

2007-07-13 Thread aslak hellesoy
On 7/13/07, Gregory Murphy [EMAIL PROTECTED] wrote:
 How does one write a spec for a Rails library?


Umm, just like you would for any other Ruby library. Can you be more specific?

Aslak

 // Gregory
 ___
 rspec-users mailing list
 rspec-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/rspec-users

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] spec for Rails library

2007-07-13 Thread Gregory Murphy
aslak hellesoy wrote:
 On 7/13/07, Gregory Murphy [EMAIL PROTECTED] wrote:
 How does one write a spec for a Rails library?


 Umm, just like you would for any other Ruby library. Can you be more 
 specific?

Sorry, I'm referring in particular to RSpec for Rails. It generates a 
number of directories in a Rails app, with a place for model specs, for 
example, and a rake task to run them, e.g. 'rake spec:models'. But there 
is no place and no task for library tests.

// Gregory
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users