diff options
author | George Roman <george.roman.99@gmail.com> | 2018-06-01 00:05:49 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-04 15:41:51 -0300 |
commit | 4e8c650d7daac769f9af843b1578dd2521318972 (patch) | |
tree | b508db3fe4ce0fa7e6436b8f8866da31c579d663 /test | |
parent | 6334c894b2b3d1943edd4902bcd42883ced0915b (diff) | |
download | luarocks-4e8c650d7daac769f9af843b1578dd2521318972.tar.gz luarocks-4e8c650d7daac769f9af843b1578dd2521318972.tar.bz2 luarocks-4e8c650d7daac769f9af843b1578dd2521318972.zip |
Tests: replace #blackbox with #integration and #whitebox with #unit
Diffstat (limited to 'test')
-rw-r--r-- | test/README.md | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/test/README.md b/test/README.md index 8124a800..770d7083 100644 --- a/test/README.md +++ b/test/README.md | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | Test suite for LuaRocks project with Busted unit testing framework(http://olivinelabs.com/busted/). | 6 | Test suite for LuaRocks project with Busted unit testing framework(http://olivinelabs.com/busted/). |
7 | 7 | ||
8 | * Contains white-box & black-box tests | 8 | * Contains unit & integration tests |
9 | * Easy setup for your purpose on command line or from configuration file | 9 | * Easy setup for your purpose on command line or from configuration file |
10 | 10 | ||
11 | ## Dependencies | 11 | ## Dependencies |
@@ -33,9 +33,9 @@ os=<version>, type your OS ["linux", "os x", "windows"] | |||
33 | --------------------------------------------------------------------------------------------- | 33 | --------------------------------------------------------------------------------------------- |
34 | ####_**Tags** of tests are required and are in this format:_ | 34 | ####_**Tags** of tests are required and are in this format:_ |
35 | 35 | ||
36 | **whitebox** - run all whitebox tests | 36 | **unit** - run all unit tests |
37 | 37 | ||
38 | **blackbox** - run all blackbox tests | 38 | **integration** - run all integration tests |
39 | 39 | ||
40 | **ssh** - run all tests which require ssh | 40 | **ssh** - run all tests which require ssh |
41 | 41 | ||
@@ -43,31 +43,16 @@ os=<version>, type your OS ["linux", "os x", "windows"] | |||
43 | 43 | ||
44 | **unix** - run all tests which are UNIX based, won't work on Windows systems | 44 | **unix** - run all tests which are UNIX based, won't work on Windows systems |
45 | 45 | ||
46 | **w**\_*name-of-command* - whitebox testing of command | ||
47 | |||
48 | **b**\_*name-of-command* - blackbox testing of command | ||
49 | |||
50 | for example: `b_install` or `w_help` | ||
51 | |||
52 | ## Examples | 46 | ## Examples |
53 | 47 | ||
54 | To run all tests: | 48 | To run all tests: |
55 | 49 | ||
56 | `busted` | 50 | `busted` |
57 | 51 | ||
58 | To run white-box tests in LuaRocks directory type : | 52 | To run unit tests in LuaRocks directory type : |
59 | |||
60 | `busted -t "whitebox"` | ||
61 | |||
62 | To run black-box tests just of *install* command (we defined our OS, so OS check is skipped.): | ||
63 | |||
64 | `busted -Xhelper os=linux -t "b_install"` | ||
65 | |||
66 | To run black-box tests of *install* command, whitebox of *help* command (using *full* type of environment): | ||
67 | |||
68 | `busted -Xhelper env=full -t "b_install", "w_help"` | ||
69 | 53 | ||
70 | To run black-box tests without tests, which use ssh: | 54 | `busted -t "unit"` |
71 | 55 | ||
72 | `busted -t "blackbox" --exclude-tags=ssh` | 56 | To run integration tests without tests which use ssh: |
73 | 57 | ||
58 | `busted -t "integration" --exclude-tags=ssh` | ||