testunit Questions

2

Solved

What's the best way to have a setup run before every method in an entire test suite (not just one test class)? Rspec allows you to define global before and after blocks. Is there a clean comparabl...
Belay asked 15/11, 2009 at 4:16

2

Solved

When running tests in Ruby's unit::test framework, is there a really easy way to specify, from the command-line, that only one test should be run (that is, specify the test class and test member va...
Henig asked 12/2, 2009 at 21:59

1

Solved

I'm trying to write code like this: assert_throws(:ExtractionFailed) { unit.extract_from('5 x 2005')} ExtractionFailed is a trivial subclass of Exception, and under test/unit, I'm trying to asse...
Jeffereyjefferies asked 24/11, 2009 at 16:47

5

Solved

I am learning Rails the age old way. By reading Agile Web Development with Rails (3rd Edition) as a starting point. I am currently in the chapter that teaches Testing. I am also aware of other BDD ...
Mccullum asked 4/4, 2009 at 14:48

3

Solved

I have a unit test (example is modified Test::Unit documentation) require 'test/unit' class TC_MyTest < Test::Unit::TestCase def test_something assert(true) end end When I execute it, I g...
Lampblack asked 9/1, 2009 at 9:2

7

>rails -v Rails 1.2.6 >ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] When I run a test fixture (that tests a rails model class) like this, it takes 20-30 secs to start execut...
Shandeigh asked 27/11, 2008 at 10:1

© 2022 - 2024 — McMap. All rights reserved.