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

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