------art_22798_7828242.1202388173616
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Mario,


On 06/02/2008, Mario Ruiz <mario / betware.com> wrote:
>
> Hi everybody,
> I have a few classes containing a few tescase methods.
> I would like to create a new class in order to run different tescases
> methods of different classes:
>
> file: testcases/myclass1.rb
> class Myclass1 < Test::Unit::Testcase


it's class Myclass1 < Test::Unit::TestCase


> file: testsuites/running.rb
> class RunningTestCases < Test::Unit::Testcase
>   def setup
>   end
>   def test01_beep
>
>     require 'testcases/myclass1'
>     Myclass1.new().test03_example()
>     Myclass1.new().test01_example()


are you coming from Java-Programming?


you don't need all the stuff in your running.rb script.

Just create a running.rb file with this content:

require 'test/unit'
require 'myclass1'
require 'myclass2'

Calling this script all your tests will be executed.

For further examples you might read some tutorials for organizing test in
test-cases and test-suites.

-Thomas





>


-- 
Thomas Preymesser
thopre / gmail.com
thomas / thopre.com
Bo: 030 - 830 353 88
mobil: 0176 - 75 03 03 04
Privat: 030 - 49 78 37 06
http://thopre.wordpress.com/
http://www.thopre.com/

------art_22798_7828242.1202388173616--