https://github.com/kikito/middleclass-specs
Specs for testing middleclass
https://github.com/kikito/middleclass-specs
Last synced: 5 months ago
JSON representation
Specs for testing middleclass
- Host: GitHub
- URL: https://github.com/kikito/middleclass-specs
- Owner: kikito
- License: bsd-3-clause
- Created: 2010-11-21T19:28:43.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-04-11T21:39:17.000Z (over 14 years ago)
- Last Synced: 2025-03-05T16:41:15.408Z (7 months ago)
- Language: Lua
- Homepage:
- Size: 121 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. MiddleClass specs
These are the specs of "middleclass":http://github.com/kikito/middleclass and "middleclass-extras":http://github.com/kikito/middleclass-extras.
These specs have been implemented using "telescope":http://github.com/norman/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.
h2. 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.
h2. 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 updateh2. 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.luaIf everything has been set up properly, you should see lost of testing being done, and, hopefully, passing.