• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..08-Nov-2021-

fixtures/H03-May-2022-1,053967

util/H08-Nov-2021-1,178948

README.mdH A D08-Nov-20211.6 KiB5936

add_spec.luaH A D08-Nov-20211.6 KiB4533

build_spec.luaH A D08-Nov-202138.6 KiB1,052940

cmd_spec.luaH A D08-Nov-20213.8 KiB10987

config_spec.luaH A D08-Nov-20219.4 KiB274226

deps_spec.luaH A D08-Nov-20216.4 KiB11592

dir_spec.luaH A D08-Nov-20212.8 KiB6455

doc_spec.luaH A D08-Nov-20216 KiB162145

download_spec.luaH A D08-Nov-20211.8 KiB5845

dummy_spec.luaH A D08-Nov-2021741 2619

external_spec.luaH A D08-Nov-20211.1 KiB3428

fetch_spec.luaH A D08-Nov-202119.1 KiB474403

fs_spec.luaH A D08-Nov-202149.3 KiB1,6071,413

fun_spec.luaH A D08-Nov-20214 KiB131107

help_spec.luaH A D08-Nov-2021658 2820

init_spec.luaH A D08-Nov-20216.4 KiB175147

install_spec.luaH A D08-Nov-202116.9 KiB362294

lint_spec.luaH A D08-Nov-20212.7 KiB9882

list_spec.luaH A D08-Nov-20211.3 KiB4636

loader_spec.luaH A D08-Nov-20212.8 KiB7567

make_manifest_spec.luaH A D08-Nov-2021326 1611

make_spec.luaH A D08-Nov-202122.4 KiB432374

new_version_spec.luaH A D08-Nov-20213.2 KiB8773

pack_spec.luaH A D08-Nov-20215.7 KiB167141

path_spec.luaH A D08-Nov-20212.2 KiB7660

persist_spec.luaH A D08-Nov-20211.8 KiB7766

purge_spec.luaH A D08-Nov-20211.2 KiB3530

refresh_cache_spec.luaH A D08-Nov-2021354 1611

remove_spec.luaH A D08-Nov-20215.2 KiB126100

search_spec.luaH A D08-Nov-2021781 3626

show_spec.luaH A D08-Nov-20213.9 KiB10884

sysdetect_spec.luaH A D08-Nov-20213.1 KiB7467

test_spec.luaH A D08-Nov-20218.3 KiB272215

tools_spec.luaH A D08-Nov-20217.6 KiB254225

unpack_spec.luaH A D08-Nov-20212.4 KiB7157

upload_spec.luaH A D08-Nov-20212.9 KiB6246

util_spec.luaH A D08-Nov-20216.4 KiB191157

which_spec.luaH A D08-Nov-20211.5 KiB4838

write_rockspec_spec.luaH A D08-Nov-20213.9 KiB10480

README.md

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