Split the tasksfactory tests up
Split out each different namesfactory type (static/change) into its own
test case with its own root to make it easier to maintain and to debug
when something goes wrong.
Change-Id: Ibdb3fe7edef2ffc7a60425df1bf5276866773564
diff --git a/src/main/resources/Documentation/test/task_states.md b/src/main/resources/Documentation/test/task_states.md
index b7800c9..2055ef8 100644
--- a/src/main/resources/Documentation/test/task_states.md
+++ b/src/main/resources/Documentation/test/task_states.md
@@ -665,9 +665,8 @@
]
}
-[root "Root tasks-factory"]
+[root "Root tasks-factory STATIC"]
subtasks-factory = tasks-factory static
- subtasks-factory = tasks-factory change
[tasks-factory "tasks-factory static"]
names-factory = names-factory static list
@@ -680,18 +679,10 @@
name = my d task Change Number(${_change_number}) Change Id(${_change_id}) Change Project(${_change_project}) Change Branch(${_change_branch}) Change Status(${_change_status}) Change Topic(${_change_topic})
type = static
-[tasks-factory "tasks-factory change"]
- names-factory = names-factory change list
- fail = True
-
-[names-factory "names-factory change list"]
- changes = change:_change1_number OR change:_change2_number
- type = change
-
{
"applicable" : true,
"hasPass" : false,
- "name" : "Root tasks-factory",
+ "name" : "Root tasks-factory STATIC",
"status" : "WAITING",
"subTasks" : [
{
@@ -717,7 +708,27 @@
"hasPass" : true,
"name" : "my d task Change Number(_change3_number) Change Id(_change3_id) Change Project(_change3_project) Change Branch(_change3_branch) Change Status(_change3_status) Change Topic(_change3_topic)",
"status" : "FAIL"
- },
+ }
+ ]
+}
+
+[root "Root tasks-factory CHANGE"]
+ subtasks-factory = tasks-factory change
+
+[tasks-factory "tasks-factory change"]
+ names-factory = names-factory change list
+ fail = True
+
+[names-factory "names-factory change list"]
+ changes = change:_change1_number OR change:_change2_number
+ type = change
+
+{
+ "applicable" : true,
+ "hasPass" : false,
+ "name" : "Root tasks-factory CHANGE",
+ "status" : "WAITING",
+ "subTasks" : [
{
"applicable" : true,
"hasPass" : true,