Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Robot Framework configuration source #12

Open
bollwyvl opened this issue May 9, 2023 · 0 comments
Open

Add a Robot Framework configuration source #12

bollwyvl opened this issue May 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bollwyvl
Copy link
Contributor

bollwyvl commented May 9, 2023

Elevator Pitch

Allow loading tasks from .robot files.

Motivation

Robot Framework is a human-readable (if quirky) text format written in Python, often used for defining acceptance tests with a large library and tooling ecosystem. It also provides a Task-driven syntax, which is close to supporting the doit task model.

Design Ideas

  • writing
    • use "free metadata" and tags for doitoml configuration
  • parsing
    • use the native data model for parsing
  • running
    • for each task, generate a robot.main invocation that matches just the test of interest
      • inject the whole to_dict back in for task execution
  • reporting
    • offer a place to put output data
# my_tasks.robot
*** Settings ***
Library     Operating System                        # reuse robot things
Library     dodo                                    # load a dodo.py as a module
Metadata    
...    doitoml:prefix          robot           # configure doitoml
       doitoml:paths:input     input.html      # define variables
       doitoml:paths:output    output.html     # can't be lists :_(

*** Tasks ***       # also support templates?
Copy the HTML
    [Documentation]  Hoist this to `doc`
    [Tags]    doitoml::file_dep::input    doitoml::targets::output
    Copy File    @{::input}  @{::output}  # supports lists as variables
    Do Another Thing  @{::input}

*** Keywords ***
Do Another Thing    # create keywords
    [Arguments]  ${value}
    Log   ${value}
    Log   ${::another-ns::thing}
@bollwyvl bollwyvl added the enhancement New feature or request label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant