Unite test is not woking as per design

require 'test/unit'

class TestMyClass < Test::Unit::TestCase
  class << self
    def startup
      p "startup"
    end

    def shutdown
      p "shutdown"
    end
  end

  def setup
    p "Setup"
  end

  def teardown
    p "teardown"
  end

  def cleanup
    p "cleanup"
  end

  def test_my_method1
    p "test1"
  end

  def test_my_method2
    p "test2"
  end
end

When i execute the above script I get following output
Started
"Setup"
"test1"
"teardown"
."Setup"
"test2"
"teardown"
.
Finished in 0.0 seconds.

2 tests, 0 assertions, 0 failures, 0 errors

the startup, shutdown and cleanup is not being called.

···

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

What do you get when you run this program:

puts RUBY_VERSION

??

Then read these:

http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
http://www.devheads.net/development/ruby/talk/startup-shutdown.htm

···

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

7stud -- wrote in post #1013742:

What do you get when you run this program:

puts RUBY_VERSION

??

Then read these:

http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
http://www.devheads.net/development/ruby/talk/startup-shutdown.htm
test-unit | RubyGems.org | your community gem host
http://test-unit.rubyforge.org/test-unit/Test/Unit/TestCase.html
http://test-unit.rubyforge.org/test-unit/index.html

RSpec documentation

OKAY??!

Actually i have installed test-unit 2.3.0 gem. And ruby 1.8.7 the thing
is it is actually taking the older test-unit only.

I verified that using uninstalling the test-unit 2.3.0 and still my
testcase is running.

is there anyway we can specify which gem to use ??

···

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

Gaurang Shah wrote in post #1013748:

7stud -- wrote in post #1013742:

What do you get when you run this program:

puts RUBY_VERSION

??

Then read these:

http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
http://www.devheads.net/development/ruby/talk/startup-shutdown.htm
http://rubygems.org/gems/test-unit
http://test-unit.rubyforge.org/test-unit/Test/Unit/TestCase.html
http://test-unit.rubyforge.org/test-unit/index.html

RSpec documentation

OKAY??!

Actually i have installed test-unit 2.3.0 gem. And ruby 1.8.7 the thing
is it is actually taking the older test-unit only.

I verified that using uninstalling the test-unit 2.3.0 and still my
testcase is running.

is there anyway we can specify which gem to use ??

Okay i got it.. i just include the below line and now it's working.
Thanks for the help.

gem 'test-unit'

···

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

This is what I see in my mail from 7stud

Then read these:

http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
http://www.devheads.net/development/ruby/talk/startup-shutdown.htm

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

This is what Gaurang replied to from 7stud

7stud -- wrote in post #1013742:
> Then read these:
>
> http://www.bootspring.com/2010/09/22/minitest-rubys-test-framework/
> http://www.devheads.net/development/ruby/talk/startup-shutdown.htm
> http://rubygems.org/gems/test-unit
> http://test-unit.rubyforge.org/test-unit/Test/Unit/TestCase.html
> http://test-unit.rubyforge.org/test-unit/index.html
>
> RSpec documentation
>
> OKAY??!

I find this incredibly frustrating. I know this isn't the only issue, I've
previously documented missing messages, and previously created a thread
dedicated to solving issues like this.

What do I need to do to make my ML interface consistent? Who do I need to
talk to? I assume I'm not the only person having issues like this, can we
not collectively decide that this needs to be resolved? It has been this way
for weeks.

···

On Fri, Jul 29, 2011 at 8:18 AM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:
On Fri, Jul 29, 2011 at 8:34 AM, Gaurang Shah <shahgomji@gmail.com> wrote:

Josh Cheek wrote in post #1013761:

I find this incredibly frustrating. I know this isn't the only issue,
I've
previously documented missing messages, and previously created a thread
dedicated to solving issues like this.

What do I need to do to make my ML interface consistent? Who do I need
to
talk to? I assume I'm not the only person having issues like this, can
we
not collectively decide that this needs to be resolved? It has been this
way
for weeks.

I wonder if it has something to do with editing messages? The website
lets you edit a message, so maybe you are only getting the first copy?

···

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

What would be the best way to fix this, then? Maybe send an email for
every editing of the message?
Maybe that's too much. Who do we need to talk to to find a solution?

I agree with Josh, it's been frustrating to miss messages in the
mailing list lately, and I would love to have it fixed (or fix it
myself if I am able to).

Jesus.

···

On Fri, Jul 29, 2011 at 8:05 PM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:

Josh Cheek wrote in post #1013761:

I find this incredibly frustrating. I know this isn't the only issue,
I've
previously documented missing messages, and previously created a thread
dedicated to solving issues like this.

What do I need to do to make my ML interface consistent? Who do I need
to
talk to? I assume I'm not the only person having issues like this, can
we
not collectively decide that this needs to be resolved? It has been this
way
for weeks.

I wonder if it has something to do with editing messages? The website
lets you edit a message, so maybe you are only getting the first copy?

Don't allow editing. Problem solved.

···

2011/7/29 Jesús Gabriel y Galán <jgabrielygalan@gmail.com>:

What would be the best way to fix this, then? Maybe send an email for
every editing of the message?

--
Phillip Gawlowski

phgaw.posterous.com | twitter.com/phgaw | gplus.to/phgaw

A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
-- Leibniz

Phillip Gawlowski wrote in post #1013798:

···

2011/7/29 Jess Gabriel y Galn <jgabrielygalan@gmail.com>:

What would be the best way to fix this, then? Maybe send an email for
every editing of the message?

Don't allow editing. Problem solved.

In my opinion, there should be unlimited editing--no time limit.

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