How can I execute rspec directly from ruby code?

Hi

Can I execute rspec directly from ruby code? I would like to do it
similar I can do using Test::Unit

Test::Unit::UI::Console::TestRunner.run(MySuite.new(MyTestCase))

I was looking on internet how to execute it, but I wasn’t found it

Is it possible?

Best,
Pablo Cantero

On Apr 28, 2011, at 1:33 PM, Pablo Cantero wrote:

Hi

Can I execute rspec directly from ruby code? I would like to do it
similar I can do using Test::Unit

Test::Unit::UI::Console::TestRunner.run(MySuite.new(MyTestCase))

I was looking on internet how to execute it, but I wasn’t found it

Is it possible?

Not today. There are some hax you can do, but there is nothing
supported. Please file a feature request at
http://github.com/rspec/rspec-core/issues if you’d like to see it
considered for a future release.

Cheers,
David

Hi

Thanks for the reply!

I created the feature request :wink:

https://github.com/rspec/rspec-core/issues/359

There are some hax you can do

There are way to execute? How can I do it?

Best,
Pablo Cantero

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs