Skip to content

Commit bede401

Browse files
committed
test robot with... robot
1 parent 2224865 commit bede401

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

atest/01_Editor.robot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ R
5555
${def} = Set Variable xpath:(//span[contains(@class, 'cm-variable')][contains(text(), 'fib')])[last()]
5656
Editor Shows Features for Language R example.R Diagnostics=Put spaces around all infix operators Jump to Definition=${def}
5757

58+
Robot Framework
59+
[Tags] gh:332
60+
${def} = Set Variable xpath:(//span[contains(@class, 'cm-keyword')][contains(text(), 'Special Log')])[last()]
61+
Editor Shows Features for Language Robot Framework example.robot Diagnostics=Undefined keyword Jump to Definition=${def}
62+
5863
SCSS
5964
${def} = Set Variable xpath:(//span[contains(@class, 'cm-variable-2')][contains(text(), 'primary-color')])[last()]
6065
Editor Shows Features for Language SCSS example.scss Diagnostics=Do not use empty rulesets Jump to Definition=${def}

atest/examples/example.robot

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
*** Settings ***
2+
Library SeleniumLibrary
3+
Force Tags atest:example
4+
5+
*** Variables ***
6+
${ABC} abc
7+
8+
*** Keywords ***
9+
Special Log
10+
[Arguments] ${log}
11+
[Documentation] a special log
12+
Log ${log.upper()}!
13+
14+
*** Test Cases ***
15+
Log Something
16+
Special Log ${ABC}
17+
Something that doesn't exist

scripts/atest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def atest(attempt, extra_args):
100100
f"OS:{OS}",
101101
"--variable",
102102
f"PY:{PY}",
103+
# don't ever test our examples
104+
"--exclude",
105+
"atest:example",
106+
# random ensures there's not inter-test coupling
103107
"--randomize",
104108
"all",
105109
*(extra_args or []),

0 commit comments

Comments
 (0)