add feature to disable test case
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-09 15:29:13 +11:00
parent b2519287ef
commit a31b01af4d
6 changed files with 204 additions and 15 deletions

View File

@@ -139,6 +139,10 @@ func ReadInput(data []byte, testDefinitions *TestDefinitions) {
if val, ok := thisTestCaseMap.Get("description"); ok {
thisTestCase.Description = val.(string)
}
// Disabled
if val, ok := thisTestCaseMap.Get("disabled"); ok {
thisTestCase.Disabled = val.(bool)
}
// Body
if val, ok := thisTestCaseMap.Get("body"); ok {
// Create a normal string map for all the body key-value pairs