middleclass/test
2010-07-29 01:26:59 +02:00
..
class_test.lua added more tests 2010-07-29 01:18:11 +02:00
includes_test.lua Added some tests. Still missing a lot of them 2010-07-23 00:56:40 +02:00
instanceOf_test.lua added more tests 2010-07-29 01:18:11 +02:00
Object_test.lua added more tests 2010-07-29 01:18:11 +02:00
README.textile added test README 2010-07-29 01:26:59 +02:00
subclassOf_test.lua added more tests 2010-07-29 01:18:11 +02:00

h1. MiddleClass tests

These tests have been implemented using "telescope":http://github.com/norman/telescope


h2. Installation dependencies for the tests

First step is installing telescope. The easiest way in ubuntu is doing:

<pre>
sudo apt-get install lua luarocks
sudo luarocks build telescope --from=http://luarocks.luaforge.net/rocks-cvs/
</pre>

The first command might ask about installing some dependencies; answer (y)es to that.

In addition to this, you will need rake.
<pre>
sudo apt-get install rake
</pre>

Again, install any dependencies.

h2. Test execution

Open a console and change to the middleclass top-directory:

<pre>
cd middleclass
</pre>

Then execute @rake@. It should be configured to start the testing automatically.
<pre>
rake
</pre>

If everything has been set up properly, you should see lost of testing being done, and, hopefully, passing.