Help me about Test-Unit in Ruby on Rails

13 views
Skip to first unread message

haxuan lac

unread,
Mar 13, 2013, 3:02:30 AM3/13/13
to rubyonra...@googlegroups.com
I'm using RubyMine for developing RoR and i found in RubyMine have Test
file.But I read in rubyforge http://test-unit.rubyforge.org/ have
Test-Unit for RoR.Could you help me about 2 problem:
- how is different between RubyMine Test-Unit and Test-Unit in rubyforge
- how can i run Test-Unit with Test-Unit in rubyforge(test-unit github:
https://github.com/test-unit/test-unit.git)
Thanks........

--
Posted via http://www.ruby-forum.com/.

Robert Walker

unread,
Mar 15, 2013, 6:55:27 PM3/15/13
to rubyonra...@googlegroups.com
haxuan lac wrote in post #1101341:
If you're planning to do xUnit style testing then I would recommend
using Ruby 1.9's build-in test framework called MiniTest:

http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/

You can even opt for RSpec style BDD testing as described (pun intended)
toward the end of the above blog.

Alternatively you may also choose the excellent, and very popular, RSpec
for comprehensive BDD style testing:

https://github.com/rspec/rspec-rails

haxuan lac

unread,
Mar 15, 2013, 10:12:08 PM3/15/13
to rubyonra...@googlegroups.com
Thank Robert Walker for answer me
I'm want to do with TDD style(http://www.agiledata.org/essays/tdd.html)
Could you give me some advise.Thanks...

Colin Law

unread,
Mar 16, 2013, 5:16:45 AM3/16/13
to rubyonra...@googlegroups.com
On 16 March 2013 02:12, haxuan lac <li...@ruby-forum.com> wrote:
> Thank Robert Walker for answer me
> I'm want to do with TDD style(http://www.agiledata.org/essays/tdd.html)
> Could you give me some advise.Thanks...

Start by working through the tutorial railstutorial.org (which is free
to use online). That gives a good introduction to testing.

Colin

>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages