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
Issues · rspec/rspec-core · GitHub 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:

There are some hax you can do

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

Best,
Pablo Cantero