You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: writing-test-plans/test-plan-manifest.md
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,9 @@ The next few sections are options passed to each builder and runner when they ar
29
29
```toml
30
30
[builders."docker:go"]
31
31
enabled = true
32
-
go_version = "1.14"
33
-
module_path = "github.com/your/module/name"
34
-
exec_pkg = "."
35
32
36
33
[builders."exec:go"]
37
34
enabled = true
38
-
module_path = "github.com/your/module/name"
39
35
40
36
[runners."local:docker"]
41
37
enabled = true
@@ -50,11 +46,28 @@ enabled = true
50
46
### Test cases
51
47
52
48
Finally, we have [test cases](../concepts-and-architecture/test-structure.md#test-cases). Test cases are defined in an [array of tables](https://github.com/toml-lang/toml#array-of-tables) which specify the name of the test case, boundaries for the number of instances and the values of any parameters being tested in a particular test case.
49
+
If your plan requires an integer param without a default value, the test will fail if you do not provide it.
53
50
54
51
```toml
55
52
[[testcases]]
56
53
name= "quickstart"
57
54
instances = { min = 1, max = 5, default = 1 }
55
+
56
+
[testcases.params]
57
+
conn_count = { type = "int", desc = "number of TCP sockets to open"default = 5 }
58
+
conn_outgoing = { type = "int", desc = "number of outgoing TCP dials", default = 5 }
59
+
conn_delay_ms = { type = "int", desc = "random milliseconds jitter before TCP dial", default = 30000 }
60
+
concurrent_dials = { type = "int", desc = "max number of concurrent net.Dial calls", default = 10 }
61
+
data_size_kb = { type = "int", desc = "size of data to write to each TCP connection", default = 128 }
62
+
barrier_iterations = { type = "int", desc = "number of iterations of the barrier test", unit = "iteration", default = 10 }
63
+
barrier_test_timeout_secs = { type = "int", desc = "barrier testcase timeout", unit = "seconds", default = 300 }
64
+
subtree_iterations = { type = "int", desc = "number of iterations of the subtree test", unit = "iteration", default = 2000 }
65
+
subtree_test_timeout_secs = { type = "int", desc = "subtree testcase timeout", unit = "seconds", default = 300 }
0 commit comments