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........
haxuan lac wrote in post #1101341:
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: GitHub - test-unit/test-unit: test-unit) Thanks........
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:
Thank Robert Walker for answer me I'm want to do with TDD style(Introduction to Test Driven Development (TDD)) Could you give me some advise.Thanks...
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