How to output names of ruby unit tests

后端 未结 3 2123
我寻月下人不归
我寻月下人不归 2020-12-29 10:27

I have a unit test (example is modified Test::Unit documentation)

require \'test/unit\'

class TC_MyTest < Test::Unit::TestCase
  def test_something
    a         


        
3条回答
  •  不知归路
    2020-12-29 11:06

    Run unit test with verbose option.

    test.rb -v v
    

    or

    test.rb --verbose=verbose
    

    Output:

    Loaded suite C:/test
    Started
    test_something(TC_MyTest): .
    
    Finished in 0.0 seconds.
    
    1 tests, 1 assertions, 0 failures, 0 errors
    

提交回复
热议问题