| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 |
<HTML> |
| 3 |
<HEAD> |
| 4 |
<META NAME="generator" CONTENT="http://txt2tags.sf.net"> |
| 5 |
<LINK REL="stylesheet" TYPE="text/css" HREF="style.css"> |
| 6 |
<TITLE>LeMock</TITLE> |
| 7 |
</HEAD> |
| 8 |
<BODY> |
| 9 |
|
| 10 |
<DIV CLASS="header" ID="header"> |
| 11 |
<H1>LeMock</H1> |
| 12 |
</DIV> |
| 13 |
|
| 14 |
<DIV CLASS="body" ID="page-README"> |
| 15 |
<ul id="main_menu"> |
| 16 |
<li id="main_menu-README"><a href="README.html" >Readme</a></li> |
| 17 |
<li id="main_menu-COPYRIGHT"><a href="COPYRIGHT.html">License</a></li> |
| 18 |
<li id="main_menu-userguide"><a href="userguide.html">Userguide</a></li> |
| 19 |
<li id="main_menu-HISTORY"><a href="HISTORY.html" >History</a></li> |
| 20 |
<li id="main_menu-DEVEL"><a href="DEVEL.html" >Devel</a></li> |
| 21 |
</ul> |
| 22 |
<H1>Readme</H1> |
| 23 |
<H2>What is Lua Easy Mock</H2> |
| 24 |
<P> |
| 25 |
LeMock (Lua Easy Mock) is a mock creation module intended for use together |
| 26 |
with a unit test framework such as lunit or lunity. It is inspired by |
| 27 |
EasyMock (for Java), and strives to be easy to use. |
| 28 |
</P> |
| 29 |
<H2>Availability</H2> |
| 30 |
<P> |
| 31 |
LeMock is hosted at LuaForge at <A HREF="http://luaforge.net/projects/lemock/">http://luaforge.net/projects/lemock/</A> |
| 32 |
</P> |
| 33 |
<H2>Installation</H2> |
| 34 |
<P> |
| 35 |
Copy the file build/lemock.lua to a Lua search path directory. This is |
| 36 |
usually something like <CODE>/usr/share/lua/5.1/</CODE> or |
| 37 |
<CODE>/usr/local/lib/lua/5.1/</CODE>. You can type <CODE>print(package.path)</CODE> at the |
| 38 |
Lua prompt to see what search path your Lua installation is using. |
| 39 |
</P> |
| 40 |
<P> |
| 41 |
Documentation in HTML format is available in build/htdocs/. |
| 42 |
</P> |
| 43 |
<H2>License</H2> |
| 44 |
<P> |
| 45 |
LeMock is licensed under the MIT license, which is the same license that |
| 46 |
Lua uses. See <A HREF="COPYRIGHT.html">COPYRIGHT</A> for full terms. |
| 47 |
</P> |
| 48 |
<H2>User Documentation</H2> |
| 49 |
<P> |
| 50 |
See <A HREF="userguide.html">the user guide</A>. |
| 51 |
</P> |
| 52 |
<H2>Development</H2> |
| 53 |
<P> |
| 54 |
LeMock is implemented in Lua 5.1, but its source code is written as |
| 55 |
literate documents, and uses the tool noweb to tangle the .lua files. The |
| 56 |
distributed source archive includes all the tangled files, to avoid |
| 57 |
depending on noweb for installation. See <A HREF="DEVEL.html">DEVEL</A> for information about how |
| 58 |
the source code is organized, and what tools are needed for the build |
| 59 |
process. |
| 60 |
</P> |
| 61 |
<HR NOSHADE SIZE=1> |
| 62 |
<P> |
| 63 |
2009-05-31 |
| 64 |
</P> |
| 65 |
</DIV> |
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
</BODY></HTML> |