Skip to content

Commit

Permalink
Added minimal example for similar names
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Meggle authored and simonmeggle committed Oct 12, 2023
1 parent 198b438 commit 644e415
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 0 deletions.
17 changes: 17 additions & 0 deletions v2/data/similar_names/.gitignore
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions v2/data/similar_names/README.md
Original file line number Diff line number Diff line change
@@ -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`)
13 changes: 13 additions & 0 deletions v2/data/similar_names/conda.yaml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions v2/data/similar_names/robot.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 644e415

Please sign in to comment.