File tree 6 files changed +23
-3
lines changed
6 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 1
1
t /servroot /
2
2
t /error.log
3
+ luacov. *
Original file line number Diff line number Diff line change
1
+ modules = {
2
+ ["resty.redis.connector"] = "lib/resty/redis/connector.lua",
3
+ ["resty.redis.sentinel"] = "lib/resty/redis/sentinel.lua",
4
+ }
Original file line number Diff line number Diff line change @@ -142,7 +142,10 @@ check_ports:
142
142
143
143
test_redis : flush_db
144
144
util/lua-releng
145
+ @rm -f luacov.stats.out
145
146
$(TEST_REDIS_VARS ) $(PROVE ) $(TEST_FILE )
147
+ @luacov
148
+ @tail -7 luacov.report.out
146
149
147
150
test_leak : flush_db
148
151
$(TEST_REDIS_VARS ) TEST_NGINX_CHECK_LEAK=1 $(PROVE ) $(TEST_FILE )
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ plan tests => repeat_each() * blocks() * 2;
8
8
my $ pwd = cwd();
9
9
10
10
our $ HttpConfig = qq {
11
- lua_package_path "$ pwd /lib/?.lua;;";
11
+ lua_package_path "$ pwd /lib/?.lua;;";
12
+
13
+ init_by_lua_block {
14
+ require (" luacov.runner" ). init()
15
+ }
12
16
} ;
13
17
14
18
$ ENV {TEST_NGINX_REDIS_PORT} ||= 6379 ;
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ use Cwd qw(cwd);
4
4
my $ pwd = cwd();
5
5
6
6
our $ HttpConfig = qq {
7
- lua_package_path "$ pwd /lib/?.lua;;";
7
+ lua_package_path "$ pwd /lib/?.lua;;";
8
+
9
+ init_by_lua_block {
10
+ require (" luacov.runner" ). init()
11
+ }
8
12
} ;
9
13
10
14
$ ENV {TEST_NGINX_RESOLVER} = ' 8.8.8.8' ;
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ plan tests => repeat_each() * (3 * blocks());
6
6
my $ pwd = cwd();
7
7
8
8
our $ HttpConfig = qq {
9
- lua_package_path "$ pwd /lib/?.lua;;";
9
+ lua_package_path "$ pwd /lib/?.lua;;";
10
+
11
+ init_by_lua_block {
12
+ require (" luacov.runner" ). init()
13
+ }
10
14
} ;
11
15
12
16
$ ENV {TEST_NGINX_RESOLVER} = ' 8.8.8.8' ;
You can’t perform that action at this time.
0 commit comments