Skip to content

Commit 4b7732e

Browse files
committed
测试目录可以拆分子目录
1 parent 56199e2 commit 4b7732e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test-suite-layout.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ project:
4141
   └── vars.t
4242
....
4343

44-
44+
当你有很多测试文件,你也可以对 `t/` 目录再次使用子目录拆分完成更深的分组归类。例如,link:https://github.com/openresty/lua-nginx-module[lua-nginx-module] 项目,我们在 `t/` 目录下就有 `023-rewrite/``024-access/` 两个子目录。
4545
When you have many test files, you can also group them further with sub-directories
4646
under `t/`. For example, in the link:https://github.com/openresty/lua-nginx-module[lua-nginx-module]
4747
project, we have sub-directores like `023-rewrite/` and `024-access/` under
@@ -55,6 +55,7 @@ Although `.t` files are Perl scripts per se, they usually do not have much
5555
Perl code at all. Instead, all of the test cases are declared as cleanly
5656
formatted "data" in these `.t` files.
5757

58+
5859
NOTE: The test suite layout convention we use here are also used by the
5960
Perl community for many years. Because `Test::Nginx` is written in Perl
6061
and reuses Perl's testing toolchain, it makes sense for us to simply follow

0 commit comments

Comments
 (0)