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.
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.
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
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。