Specs for testing middleclass
Lua
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitmodules
BSD-LICENSE.txt
README.textile
ai_QuadTree.lua
core_Object.lua
core_class.lua
core_includes.lua
core_instanceOf.lua
core_subclassOf.lua
extras_Apply.lua
extras_Beholder.lua
extras_Branchy.lua
extras_Callbacks.lua
extras_GetterSetter.lua
extras_Indexable.lua
extras_Invoker.lua
extras_Stateful.lua
run.lua

README.textile

MiddleClass specs

These are the specs of middleclass and middleclass-extras.

These specs have been implemented using telescope

They are a series of tests that verify that the current implementation of MiddleClass works as expected. It is recommended to run them after modifying MiddleClass.

Prerequisites

First step is installing telescope. The easiest way in ubuntu is installing luarocks and then telescope itself:

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

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

Installation

Get the code from github normally, and then update the submodules (don’t forget this step, otherwise middleclass and middleclass-extras will not be downloaded and you will not be able to run the specs!)

git clone git://github.com/kikito/middleclass-specs.git
git submodule init
git submodule update

Test execution

Open a console and change to the middleclass-specs top-directory. Then execute lua run.lua. It should be configured to start the testing automatically.

cd your/path/to/middleclass-specs
lua run.lua

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