Running Rspec on Rake task

25 views
Skip to first unread message

Jordano Moscoso

unread,
Aug 16, 2016, 7:31:47 PM8/16/16
to rspec

Is there any way to run all my tests on a rake task?

task :runtests=> :environment do
    **HERE RUN RSPEC WITH ALL TESTS AND GET THE RESULT TO A STRING**
    THEN DO SOMETHING WITH TE RESULT
end

Thanks.

Myron Marston

unread,
Aug 16, 2016, 11:58:09 PM8/16/16
to rs...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscribe@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/d69addeb-957d-4dec-b34a-b2cf9696863d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Chaffee

unread,
Aug 19, 2016, 6:47:30 PM8/19/16
to rs...@googlegroups.com
...and depending on your needs for that output, you may enjoy the JSON Formatter ( --format j )


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages