middleclass/spec
2010-09-22 01:20:45 +02:00
..
Beholder_spec.lua added beholder with tests 2010-08-15 16:14:35 +02:00
Callbacks_spec.lua Cleaned up callbacks and added after_initialize special case 2010-09-20 22:43:43 +02:00
class_spec.lua all metamethods working except __len (which is not feasible on tables anyway) 2010-08-02 01:25:33 +02:00
GetterSetter_spec.lua added getterSetter mixin with tests 2010-08-15 01:03:25 +02:00
includes_spec.lua added tests for mixins. MiccleClass tests are now RC 1 2010-08-02 16:51:30 +02:00
instanceOf_spec.lua all metamethods working except __len (which is not feasible on tables anyway) 2010-08-02 01:25:33 +02:00
Object_spec.lua added tests for mixins. MiccleClass tests are now RC 1 2010-08-02 16:51:30 +02:00
README.textile all metamethods working except __len (which is not feasible on tables anyway) 2010-08-02 01:25:33 +02:00
Sender_spec.lua renamed Invoker.invoke to Sender.send . Also, started using it on Beholder and Callbacks without breaking any tests! 2010-09-22 01:20:45 +02:00
StatefulObject_spec.lua added NONWORKING Callbacks. Will continue after mid-september 2010-08-22 01:05:11 +02:00
subclassOf_spec.lua all metamethods working except __len (which is not feasible on tables anyway) 2010-08-02 01:25:33 +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.