File tree Expand file tree Collapse file tree 6 files changed +23
-3
lines changed
Expand file tree Collapse file tree 6 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 11t /servroot /
22t /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:
142142
143143test_redis : flush_db
144144 util/lua-releng
145+ @rm -f luacov.stats.out
145146 $(TEST_REDIS_VARS ) $(PROVE ) $(TEST_FILE )
147+ @luacov
148+ @tail -7 luacov.report.out
146149
147150test_leak : flush_db
148151 $(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;
88my $ pwd = cwd();
99
1010our $ 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+ }
1216} ;
1317
1418$ ENV {TEST_NGINX_REDIS_PORT} ||= 6379 ;
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ use Cwd qw(cwd);
44my $ pwd = cwd();
55
66our $ 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+ }
812} ;
913
1014$ 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());
66my $ pwd = cwd();
77
88our $ 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+ }
1014} ;
1115
1216$ ENV {TEST_NGINX_RESOLVER} = ' 8.8.8.8' ;
You can’t perform that action at this time.
0 commit comments