aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2018-06-09 00:17:31 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-06-12 15:23:16 -0300
commit1fb1a5668a87e80c6eb7fe54e8b9fa8b1ef5851f (patch)
treed0e20914712721d2819604824e7ca51d5b2ce89a /spec
parent98ad23150bef38d2f865707d0eac980f9425490f (diff)
downloadluarocks-1fb1a5668a87e80c6eb7fe54e8b9fa8b1ef5851f.tar.gz
luarocks-1fb1a5668a87e80c6eb7fe54e8b9fa8b1ef5851f.tar.bz2
luarocks-1fb1a5668a87e80c6eb7fe54e8b9fa8b1ef5851f.zip
Move test/README.md to spec/README.md
Diffstat (limited to 'spec')
-rw-r--r--spec/README.md66
1 files changed, 66 insertions, 0 deletions
diff --git a/spec/README.md b/spec/README.md
new file mode 100644
index 00000000..31e2b660
--- /dev/null
+++ b/spec/README.md
@@ -0,0 +1,66 @@
1
2# LuaRocks testsuite
3
4## Overview
5
6Test suite for LuaRocks project with Busted unit testing framework(http://olivinelabs.com/busted/).
7
8* Contains unit & integration tests
9* Easy setup for your purpose on command line or from configuration file
10
11## Dependencies
12
13* Lua >= 5.1
14* Busted with dependencies
15
16## Usage
17
18Running of tests is based on basic Busted usage. *-Xhelper* flag is used
19for inserting arguments into testing. Flag *--tags=* or *-t* is used
20for specifying which tests will run. Start tests inside
21LuaRocks folder or specify with *-C* flag.
22
23**Arguments for Busted helper script**
24
25```
26env=<type>, (default:"minimal") type what kind of environment to use ["minimal", "full"]
27noreset, Don't reset environment after each test
28clean, remove existing testing environment
29appveyor, add just if running on TravisCI
30travis, add just if running on TravisCI
31os=<version>, type your OS ["linux", "os x", "windows"]
32```
33---------------------------------------------------------------------------------------------
34## _**Tags** of tests are required and are in this format:_
35
36**unit** - run all unit tests
37
38**integration** - run all integration tests
39
40**ssh** - run all tests which require ssh
41
42**mock** - run all tests which require mock LuaRocks server (upload tests)
43
44**unix** - run all tests which are UNIX based, won't work on Windows systems
45
46## Examples
47
48To run all tests:
49
50`busted`
51
52To run unit tests in LuaRocks directory type :
53
54`busted -t "unit"`
55
56To run integration tests without tests which use ssh:
57
58`busted -t "integration" --exclude-tags=ssh`
59
60## To do
61
62Cover files that currently have 0% coverage:
63* build/cmake.lua
64* build/command.lua
65* fetch/\*.lua except for git.lua
66* tools/tar.lua