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: etc/robot.toml.json
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,22 @@
6
6
}
7
7
],
8
8
"definitions": {
9
+
"Condition": {
10
+
"additionalProperties": false,
11
+
"description": "Condition(if_: 'str')",
12
+
"properties": {
13
+
"if": {
14
+
"description": "Condition to evaluate. This must be a Python \"eval\" expression.\nFor security reasons, only certain expressions and functions are allowed.\n\nExamples:\n```toml\nif = \"re.match(r'^\\d+$', environ.get('TEST_VAR', ''))\"\nif = \"platform.system() == 'Linux'\"\n```\n",
"description": "If the profile should be detached.\"\nDetached means it is not inherited from the main profile.\n",
2286
+
"description": "The profile should be detached.\"\nDetached means it is not inherited from the main profile.\n",
2271
2287
"title": "Detached",
2272
2288
"type": [
2273
2289
"boolean",
@@ -2325,6 +2341,22 @@
2325
2341
"description": "Verifies test data and runs tests so that library\nkeywords are not executed.\n\n---\ncorresponds to the `--dryrun` option of _robot_\n",
2326
2342
"title": "Dry run"
2327
2343
},
2344
+
"enabled": {
2345
+
"anyOf": [
2346
+
{
2347
+
"type": "boolean"
2348
+
},
2349
+
{
2350
+
"$ref": "#/definitions/Condition"
2351
+
},
2352
+
{
2353
+
"type": "null"
2354
+
}
2355
+
],
2356
+
"default": null,
2357
+
"description": "If enabled the profile is used. You can also use and `if` condition\nto calculate the enabled state.\n\nExamples:\n```toml\n# alway disabled\nenabled = false\n```\n\n```toml\n# enabled if TEST_VAR is set\nenabled = { if = 'env.get(\"CI\") == \"true\"' }\n```\n",
0 commit comments