From 644e415b417ca4dcb5823846dbc7388ddf9a635f Mon Sep 17 00:00:00 2001 From: Simon Meggle Date: Thu, 5 Oct 2023 11:41:34 +0200 Subject: [PATCH] Added minimal example for similar names --- v2/data/similar_names/.gitignore | 17 ++++++++++++++ v2/data/similar_names/README.md | 6 +++++ v2/data/similar_names/conda.yaml | 13 +++++++++++ v2/data/similar_names/robot.yaml | 22 +++++++++++++++++++ .../suite_mainfolder/suite_folder1/demo.robot | 9 ++++++++ .../suite_mainfolder/suite_folder2/demo.robot | 9 ++++++++ 6 files changed, 76 insertions(+) create mode 100644 v2/data/similar_names/.gitignore create mode 100644 v2/data/similar_names/README.md create mode 100644 v2/data/similar_names/conda.yaml create mode 100644 v2/data/similar_names/robot.yaml create mode 100644 v2/data/similar_names/suite_mainfolder/suite_folder1/demo.robot create mode 100644 v2/data/similar_names/suite_mainfolder/suite_folder2/demo.robot diff --git a/v2/data/similar_names/.gitignore b/v2/data/similar_names/.gitignore new file mode 100644 index 00000000..811ab3fe --- /dev/null +++ b/v2/data/similar_names/.gitignore @@ -0,0 +1,17 @@ +output/ +venv/ +temp/ +.rpa/ +.idea/ +.ipynb_checkpoints/ +*/.ipynb_checkpoints/* +.virtual_documents/ +*/.virtual_documents/* +.vscode +.DS_Store +*.pyc +*.zip +*/work-items-out/* +testrun/* +.~lock* +*.pkl diff --git a/v2/data/similar_names/README.md b/v2/data/similar_names/README.md new file mode 100644 index 00000000..af817171 --- /dev/null +++ b/v2/data/similar_names/README.md @@ -0,0 +1,6 @@ +# Example: nested suites + +This minimal example can be used to demonstrate the ocurrence of multiple suite/test objects which have the same name, which are: + +* Suites: `Demo` (2x, from the file `demo.robot`) +* Tests: `TestA`, `TestB`, `TextC` (2x, defined in `demo.robot`) \ No newline at end of file diff --git a/v2/data/similar_names/conda.yaml b/v2/data/similar_names/conda.yaml new file mode 100644 index 00000000..4d96eb7b --- /dev/null +++ b/v2/data/similar_names/conda.yaml @@ -0,0 +1,13 @@ +# For more details on the format and content: +# https://github.com/robocorp/rcc/blob/master/docs/recipes.md#what-is-in-condayaml +# Tip: Adding a link to the release notes of the packages helps maintenance and security. + +channels: + - conda-forge + +dependencies: + - python=3.10.12 # https://pyreadiness.org/3.10 + - pip=23.2.1 # https://pip.pypa.io/en/stable/news + - truststore=0.7.0 # https://github.com/sethmlarson/truststore/blob/main/CHANGELOG.md + - pip: + - robotframework>=6 diff --git a/v2/data/similar_names/robot.yaml b/v2/data/similar_names/robot.yaml new file mode 100644 index 00000000..aa177600 --- /dev/null +++ b/v2/data/similar_names/robot.yaml @@ -0,0 +1,22 @@ +# For more details on the format and content: +# https://github.com/robocorp/rcc/blob/master/docs/recipes.md#what-is-in-robotyaml + +tasks: + # Task names here are used when executing the bots, renaming these is recommended. + Run all tasks: + shell: python -m robot --report NONE --outputdir output --logtitle "Task log" tasks.robot + +environmentConfigs: + - environment_windows_amd64_freeze.yaml + - environment_linux_amd64_freeze.yaml + - environment_darwin_amd64_freeze.yaml + - conda.yaml + +artifactsDir: output + +PATH: + - . +PYTHONPATH: + - . +ignoreFiles: + - .gitignore diff --git a/v2/data/similar_names/suite_mainfolder/suite_folder1/demo.robot b/v2/data/similar_names/suite_mainfolder/suite_folder1/demo.robot new file mode 100644 index 00000000..93594f72 --- /dev/null +++ b/v2/data/similar_names/suite_mainfolder/suite_folder1/demo.robot @@ -0,0 +1,9 @@ +*** Test Cases *** +TestA + Log This is TestA doing nothing. + +TestB + Log This is TestB doing nothing. + +TestC + Log This is TestC doing nothing. diff --git a/v2/data/similar_names/suite_mainfolder/suite_folder2/demo.robot b/v2/data/similar_names/suite_mainfolder/suite_folder2/demo.robot new file mode 100644 index 00000000..93594f72 --- /dev/null +++ b/v2/data/similar_names/suite_mainfolder/suite_folder2/demo.robot @@ -0,0 +1,9 @@ +*** Test Cases *** +TestA + Log This is TestA doing nothing. + +TestB + Log This is TestB doing nothing. + +TestC + Log This is TestC doing nothing.