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: tests/src/tests/README.md
+25-21
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The tests use the go language and are intended to test every apsect of the parse
10
10
* Parser functions covered:
11
11
* Read an existing devfile.
12
12
* Write a new devfile.
13
-
* Modify Content of a devfile.
13
+
* Modify content of a devfile.
14
14
* Multi-threaded access to the parser.
15
15
* The tests use the devfile schema to create a structure containing expected content for a devfile. These structures are compared with those returned by the parser.
16
16
* sigs.k8s.io/yaml is used to write out devfiles.
@@ -87,6 +87,10 @@ There are also some constants which control execution of the tests:
87
87
88
88
* Each devfile is created in a schema structure.
89
89
* Which attributes are set and the values used are randomized.
90
+
* For example, the number of commands included in a devfile is randomly generated.
91
+
* For example, attribute values are set to randomized strings, numbers or binary.
92
+
* For example, a particular optional attribute has a 50% chance of being uncluded in a devfiles.
93
+
* Repeated tests give more variety and wider coverage.
90
94
* Once the schema structure is complete it is written in one of two ways.
91
95
* using the sigs.k8s.io/yaml.
92
96
* using the parser.
@@ -124,10 +128,10 @@ For example add support for apply command to existing command support:
0 commit comments