Command Line Interface (CLI)
The robotcode
CLI tool enables seamless interaction with Robot Framework through the command line, offering a comprehensive set of features for project analysis, debugging, and configuration management.
The CLI tool is designed to be straightforward and user-friendly, with a broad range of commands to support various use cases, including test execution, documentation generation, and code analysis. It also supports configuration profiles, allowing users to define and quickly switch between different project setups as needed.
In most cases, not all CLI components are required within a single project. For example, in a CI (Continuous Integration) environment, only the runner
package is typically necessary to execute tests, while the language-server
package is generally not needed. The analyze
package is mainly useful in a development environment to detect syntax errors and validate code, but it may be unnecessary in production or deployment environments. Similarly, the debugger
package is essential for local development when troubleshooting test cases but isn’t usually required in production or CI pipelines.
To accommodate these varied needs, robotcode
is organized into separate packages that each focus on specific functions. The core package, robotcode
, provides foundational support for working with robot.toml
configuration files and profile management. Here’s a more detailed breakdown of each package and its capabilities:
runner
Package: This package is essential for users who need to run and manage tests within Robot Framework projects. It includes commands for executing tests, generating documentation, and discovering test elements. This package is especially important in CI/CD pipelines, where automation of test execution is a primary focus.- Commands:
robot
,rebot
,libdoc
: Enhanced versions of the standard Robot Framework tools, with support forrobot.toml
configuration files and profiles, allowing customized setups for different environments or testing requirements.discover
: Searches the project for tests, suites, tags, tasks, and other elements, providing a quick overview of available test cases and project structure.
- Commands:
analyze
Package: This package provides tools for detailed inspection and validation of Robot Framework code, helping users identify errors and improve code quality. Theanalyze
package is typically more useful in development environments where code quality checks and error detection are needed before moving tests to a CI or production environment.- Commands:
analyze
: Analyzes Robot Framework scripts for syntax errors, undefined keywords, and other potential issues, allowing early detection of problems and ensuring adherence to best practices.
- Commands:
debugger
Package: The debugger package enables powerful debugging capabilities for Robot Framework tests by providing a Debug Adapter Protocol (DAP)-compatible debugger. This package is most beneficial in development or local testing environments where developers need to diagnose and troubleshoot test issues. A DAP client, such as Visual Studio Code, can be connected to initiate and control debug sessions, enabling features like setting breakpoints, stepping through code, and inspecting variables.- Commands:
debug
: Starts a DAP-compatible debug session for Robot Framework tests. This tool requires a DAP client to connect to the debug session, such as Visual Studio Code, which can then interface with the debugger and provide interactive debugging tools to analyze code behavior and troubleshoot issues effectively.
- Commands:
repl
Package: The REPL (Read-Eval-Print Loop) package provides an interactive, real-time environment for executing Robot Framework commands. It’s ideal for experimenting with keywords, testing ideas, and performing quick debugging without needing to create full test files. This package is mainly used in local development or testing environments where users can quickly prototype or troubleshoot commands.- Commands:
repl
: Launches an interactive Robot Framework shell where users can execute commands line-by-line, ideal for quick testing and experimentation.
- Commands:
language-server
Package: This package provides language server capabilities, supporting IDE integration for Robot Framework with real-time code insights. Compatible with editors that support the Language Server Protocol (LSP), such as Visual Studio Code, it enables enhanced productivity and convenience. It is most useful in local development environments where interactive IDE support aids in code writing and refactoring but is generally not needed in CI or production environments.- Commands:
language-server
: Starts the RobotCode Language Server, which provides features like syntax highlighting, auto-completion, and code analysis, designed to improve the Robot Framework development experience within IDEs.
- Commands:
Installation
To install the core robotcode
CLI tool, use pip
:
pip install robotcode
This command installs only the main package. For specific functionality, additional packages can be installed as needed:
pip install robotcode[runner]
pip install robotcode[analyze]
pip install robotcode[debugger]
pip install robotcode[repl]
pip install robotcode[language-server]
To install all packages, including optional dependencies, use:
pip install robotcode[all]
This includes additional tools, such as robocop
for linting and robotidy
for code formatting, which further enhance the development experience with Robot Framework.
Commands
The following sections outline all available commands, their usage, and the corresponding options. Options with and asterisk (*) can be specified multiple times.
robotcode
A CLI tool for Robot Framework.
Usage:
robotcode [OPTIONS] COMMAND [ARGS]...
Options:
-c, --config PATH *
Config file to use. If not specified, the default config file is used. [env var: ROBOTCODE_CONFIG_FILES]
-p, --profile TEXT *
The Execution Profile to use. If not specified, the default profile is used. [env var: ROBOTCODE_PROFILES]
-r, --root DIRECTORY
Specifies the root path to be used for the project. It will be automatically detected if not provided. [env var: ROBOTCODE_ROOT]
--no-vcs
Ignore version control system directories (e.g., .git, .hg) when detecting the project root. [env var: ROBOTCODE_NO_VCS]
-f, --format [toml|json|json-indent|text]
Set the output format.
-d, --dry
Dry run, do not execute any commands. [env var: ROBOTCODE_DRY]
--color / --no-color
Whether or not to display colored output (default is auto-detection). [env var: ROBOTCODE_COLOR]
--pager / --no-pager
Whether or not use a pager to display long text or data. [env var: ROBOTCODE_PAGER]
-v, --verbose
Enables verbose mode. [env var: ROBOTCODE_VERBOSE]
--log
Enables logging. [env var: ROBOTCODE_LOG]
--log-level [TRACE|DEBUG|INFO|WARNING|ERROR|CRITICAL]
Sets the log level. [env var: ROBOTCODE_LOG_LEVEL; default: CRITICAL]
--log-format TEXT
Sets the log format. See python logging documentation for more information. [env var: ROBOTCODE_LOG_FORMAT; default: %(levelname)s:%(name)s:%(message)s]
--log-style [%|{|$]
Sets the log style. See python logging documentation for more information. [env var: ROBOTCODE_LOG_STYLE; default: %]
--log-filename FILE
Write log output to a file instead to console. [env var: ROBOTCODE_LOG_FILENAME]
--log-calls
Enables logging of method/function calls. [env var: ROBOTCODE_LOG_CALLS]
--version
Show the version and exit.
--help
Show this message and exit.
Commands:
The analyze command provides various subcommands for analyzing Robot Framework code.
TODO: Cleans a Robot Framework project.
Shows information about the configuration.
Starts a Robot Framework debug session and waits for incomming connections.
Launches a robotcode debug session.
Commands to discover informations about the current project.
Run Robot Framework Language Server.
Runs
libdoc
with the selected configuration, profiles, options and arguments.TODO: Create a new Robot Framework project.
Shows information on defined profiles.
Runs
rebot
with the selected configuration, profiles, options and arguments.Run Robot Framework interactively.
Runs
robot
with the selected configuration, profiles, options and arguments.Runs
testdoc
with the selected configuration, profiles, options and arguments.
Aliases:
Runs
robot
with the selected configuration, profiles, options and arguments.
analyze
The analyze command provides various subcommands for analyzing Robot Framework code. These subcommands support specialized tasks, such as code analysis, style checking or dependency graphs.
Usage:
robotcode analyze [OPTIONS] COMMAND [ARGS]...
Options:
--version
Show the version and exit.
--help
Show this message and exit.
Commands:
Performs static code analysis to identify potential issues in the specified PATHS.
code
Performs static code analysis to identify potential issues in the specified PATHS. The analysis detects syntax errors, missing keywords or variables, missing arguments, and other problems.
- PATHS: Can be individual files or directories. If no PATHS are provided, the current directory is analyzed by default.
The return code is a bitwise combination of the following values:
0
: SUCCESS - No issues detected.1
: ERRORS - Critical issues found.2
: WARNINGS - Non-critical issues detected.4
: INFORMATIONS - General information messages.8
: HINTS - Suggestions or improvements.
Examples:
robotcode analyze code
robotcode analyze code --filter **/*.robot
robotcode analyze code tests/acceptance/first.robot
robotcode analyze code -mi DuplicateKeyword tests/acceptance/first.robot
robotcode --format json analyze code
Usage:
robotcode analyze code [OPTIONS] [PATHS]...
Options:
--version
Show the version and exit.
-f, --filter PATTERN *
Glob pattern to filter files to analyze. Can be specified multiple times.
-v, --variable name:value *
Set variables in the test data. see
robot --variable
option.-V, --variablefile PATH *
Python or YAML file file to read variables from. see
robot --variablefile
option.-P, --pythonpath PATH *
Additional locations where to search test libraries and other extensions when they are imported. see
robot --pythonpath
option.-mi, --modifiers-ignore CODE *
Specifies the diagnostics codes to ignore.
-me, --modifiers-error CODE *
Specifies the diagnostics codes to treat as errors.
-mw, --modifiers-warning CODE *
Specifies the diagnostics codes to treat as warning.
-mI, --modifiers-information CODE *
Specifies the diagnostics codes to treat as information.
-mh, --modifiers-hint CODE *
Specifies the diagnostics codes to treat as hint.
--help
Show this message and exit.
clean
TODO: Cleans a Robot Framework project.
TODO: This is not implemented yet.
Usage:
robotcode clean [OPTIONS]
Options:
--help
Show this message and exit.
config
Shows information about the configuration.
Usage:
robotcode config [OPTIONS] COMMAND [ARGS]...
Options:
--help
Show this message and exit.
Commands:
Search for configuration files and list them.
Shows informations about possible configuration settings.
Searches for the root folder of the project and prints them.
Shows the current configuration.
files
Search for configuration files and list them.
Takes a list of PATHS or if no PATHS are given, takes the current working directory, to search for configuration files and prints them.
Examples:
robotcode config files
robotcode config files tests/acceptance/first.robot
Usage:
robotcode config files [OPTIONS] [PATHS]... [USER]
Options:
--help
Show this message and exit.
info
Shows informations about possible configuration settings.
Usage:
robotcode config info [OPTIONS] COMMAND [ARGS]...
Options:
--help
Show this message and exit.
Commands:
Shows the description of the specified configuration settings.
Lists all possible configuration settings.
desc
Shows the description of the specified configuration settings.
If no NAME is given shows the description of all possible configuration settings. Wildcards are supported.
Examples:
robotcode config info desc
robotcode config info desc python-path
robotcode config info desc rebot.*
robotcode config info desc *tag*
Usage:
robotcode config info desc [OPTIONS] [NAME]...
Options:
--help
Show this message and exit.
list
Lists all possible configuration settings.
If NAME is given searches for given name. Wildcards are supported.
Examples:
robotcode config info list
robotcode config info list rebot.*
robotcode config info list *tag*
Usage:
robotcode config info list [OPTIONS] [NAME]...
Options:
--help
Show this message and exit.
root
Searches for the root folder of the project and prints them.
Takes a list of PATHS or if no PATHS are given, takes the current working directory, to search for the root of the project and prints this.
Examples:
robotcode config root
robotcode config root tests/acceptance/first.robot
Usage:
robotcode config root [OPTIONS] [PATHS]...
Options:
--help
Show this message and exit.
show
Shows the current configuration.
Takes a list of PATHS or if no PATHS are given, takes the current working directory, to search for configuration files and prints the current configuration.
Examples:
robotcode config show
robotcode config show tests/acceptance/first.robot
robotcode --format json config show
Usage:
robotcode config show [OPTIONS] [PATHS]...
Options:
-s, --single
Shows single files, not the combined config.
--help
Show this message and exit.
debug
Starts a Robot Framework debug session and waits for incomming connections.
Usage:
robotcode debug [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--debug / --no-debug
Enable/disable debug mode [default: debug]
--stop-on-entry / --no-stop-on-entry
Breaks into debugger when a robot framework run starts. [default: no-stop-on-entry]
--wait-for-client / --no-wait-for-client
Waits until a debug client is connected. [env var: ROBOTCODE_WAIT_FOR_CLIENT; default: wait-for-client]
--wait-for-client-timeout FLOAT
Timeout in seconds for waiting for a connection with a debug client. [env var: ROBOTCODE_WAIT_FOR_CLIENT_TIMEOUT; default: 15]
--configuration-done-timeout FLOAT
Timeout to wait for a configuration from client. [env var: ROBOTCODE_CONFIGURATION_DONE_TIMEOUT; default: 15]
--debugpy / --no-debugpy
Enable/disable python debugging. [env var: ROBOTCODE_DEBUGPY; default: no-debugpy]
--debugpy-wait-for-client / --no-debugpy-wait-for-client
Waits for a debugpy client to connect. [env var: ROBOTCODE_DEBUGPY_WAIT_FOR_CLIENT]
--debugpy-port INTEGER
The port for the debugpy session. [default: 5678]
--output-messages / --no-output-messages
Send output messages from robot framework to client. [default: no-output-messages]
--output-log / --no-output-log
Send log messages from robotframework to client. [default: output-log]
--output-timestamps / --no-output-timestamps
Include timestamps in log and output messages. [default: no-output-timestamps]
--group-output / --no-group-output
Fold/group messages or log messages. [default: no-group-output]
--tcp [<ADDRESS>:]<PORT>
Run in
tcp
server mode and listen at the given port. (Equivalent to--mode tcp --port <port>
) NOTE: This option is mutually exclusive with options: pipe-server, pipe-name, port, mode.--pipe-server NAME
Run in
pipe-server
mode and listen at the given pipe name. (Equivalent to--mode pipe-server --pipe-name <name>
) NOTE: This option is mutually exclusive with options: pipe-name, port, mode, bind, tcp.--mode [tcp|pipe-server]
The mode to use for the debug launch server. NOTE: This option is mutually exclusive with options: tcp, pipe-server. [env var: ROBOTCODE_MODE; default: tcp]
--port PORT
The port to listen on or connect to. (Only valid for
tcp
andsocket mode
) NOTE: This option is mutually exclusive with options: pipe-server, pipe-name. [env var: ROBOTCODE_PORT; default: 6612; 1<=x<=65535]--bind ADDRESS *
Specify alternate bind address. If no address is specified
localhost
is used. (Only valid for tcp and socket mode) NOTE: This option is mutually exclusive with options: pipe-server, pipe-name. [env var: ROBOTCODE_BIND; default: 127.0.0.1]--pipe-name NAME
The pipe to listen on or connect to. (Only valid in
pipe
andpipe-server
mode) NOTE: This option is mutually exclusive with options: tcp, pipe-server, port, bind. [env var: ROBOTCODE_PIPE_NAME]--version
Show the version and exit.
--help
Show this message and exit.
debug-launch
Launches a robotcode debug session.
Usage:
robotcode debug-launch [OPTIONS]
Options:
--stdio
Run in
stdio
mode. (Equivalent to--mode stdio
) NOTE: This option is mutually exclusive with options: pipe-name, port, socket, pipe-server, mode, bind, tcp, pipe. [env var: ROBOTCODE_STDIO]--tcp [<ADDRESS>:]<PORT>
Run in
tcp
server mode and listen at the given port. (Equivalent to--mode tcp --port <port>
) NOTE: This option is mutually exclusive with options: pipe-name, port, socket, pipe-server, mode, stdio, pipe.--socket [<ADDRESS>:]<PORT>
Run in
socket
mode and connect to the given port. (Equivalent to--mode socket --port <port>
) NOTE: This option is mutually exclusive with options: pipe-name, port, pipe-server, mode, tcp, stdio, pipe.--pipe NAME
Run in
pipe
mode and connect to the given pipe name. (Equivalent to--mode pipe --pipe-name <name>
) NOTE: This option is mutually exclusive with options: pipe-name, port, socket, pipe-server, mode, bind, tcp, stdio.--pipe-server NAME
Run in
pipe-server
mode and listen at the given pipe name. (Equivalent to--mode pipe-server --pipe-name <name>
) NOTE: This option is mutually exclusive with options: pipe-name, port, socket, mode, bind, tcp, stdio, pipe.--mode [stdio|tcp|socket|pipe|pipe-server]
The mode to use for the debug launch server. NOTE: This option is mutually exclusive with options: socket, pipe-server, tcp, stdio, pipe. [env var: ROBOTCODE_MODE; default: stdio]
--port PORT
The port to listen on or connect to. (Only valid for
tcp
andsocket mode
) NOTE: This option is mutually exclusive with options: pipe-server, pipe, pipe-name. [env var: ROBOTCODE_PORT; default: 6611; 1<=x<=65535]--bind ADDRESS *
Specify alternate bind address. If no address is specified
localhost
is used. (Only valid for tcp and socket mode) NOTE: This option is mutually exclusive with options: pipe-server, pipe, pipe-name. [env var: ROBOTCODE_BIND; default: 127.0.0.1]--pipe-name NAME
The pipe to listen on or connect to. (Only valid in
pipe
andpipe-server
mode) NOTE: This option is mutually exclusive with options: port, socket, pipe-server, bind, tcp, stdio, pipe. [env var: ROBOTCODE_PIPE_NAME]--version
Show the version and exit.
--help
Show this message and exit.
discover
Commands to discover informations about the current project.
Examples:
robotcode discover tests
robotcode --profile regression discover tests
Usage:
robotcode discover [OPTIONS] COMMAND [ARGS]...
Options:
--diagnostics / --no-diagnostics
Display
robot
parsing errors and warning that occur during discovering. [default: diagnostics]--version
Show the version and exit.
--help
Show this message and exit.
Commands:
Discover suites, tests, tasks with the selected configuration, profiles, options and arguments.
Shows all files that are used to discover the tests.
Shows some informations about the current robot environment.
Discover suites with the selected configuration, profiles, options and arguments.
Discover tags with the selected configuration, profiles, options and arguments.
Discover tasks with the selected configuration, profiles, options and arguments.
Discover tests with the selected configuration, profiles, options and arguments.
all
Discover suites, tests, tasks with the selected configuration, profiles, options and arguments.
You can use all known robot
arguments to filter for example by tags or to use pre-run-modifier.
Examples:
robotcode discover all
robotcode --profile regression discover all
robotcode --profile regression discover all --include regression --exclude wipANDnotready
Usage:
robotcode discover all [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--tags / --no-tags
Show the tags that are present. [default: tags]
--by-longname TEXT *
Select tests/tasks or suites by longname.
--exclude-by-longname TEXT *
Excludes tests/tasks or suites by longname.
--version
Show the version and exit.
--full-paths / --no-full-paths
Show full paths instead of releative. [default: no-full-paths]
--help
Show this message and exit.
Use -- --help
to see robot
help.
files
Shows all files that are used to discover the tests.
Note: At the moment only .robot
and .resource
files are shown. Examples: robotcode discover files .
Usage:
robotcode discover files [OPTIONS] [PATHS]...
Options:
--full-paths / --no-full-paths
Show full paths instead of releative. [default: no-full-paths]
--help
Show this message and exit.
info
Shows some informations about the current robot environment.
Examples:
robotcode discover info
Usage:
robotcode discover info [OPTIONS]
Options:
--help
Show this message and exit.
suites
Discover suites with the selected configuration, profiles, options and arguments.
You can use all known robot
arguments to filter for example by tags or to use pre-run-modifier.
Examples:
robotcode discover suites
robotcode --profile regression discover suites
robotcode --profile regression discover suites --include regression --exclude wipANDnotready
Usage:
robotcode discover suites [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--by-longname TEXT *
Select tests/tasks or suites by longname.
--exclude-by-longname TEXT *
Excludes tests/tasks or suites by longname.
--version
Show the version and exit.
--full-paths / --no-full-paths
Show full paths instead of releative. [default: no-full-paths]
--help
Show this message and exit.
Use -- --help
to see robot
help.
tags
Discover tags with the selected configuration, profiles, options and arguments.
You can use all known robot
arguments to filter for example by tags or to use pre-run-modifier.
Examples:
robotcode discover tags
robotcode --profile regression discover tags
robotcode --profile regression discover tags --tests -i wip ```
**Usage:**
```text
robotcode discover tags [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--normalized / --not-normalized
Whether or not normalized tags are shown. [default: normalized]
--tests / --no-tests
Show tests where the tag is present. [default: no-tests]
--tasks / --no-tasks
Show tasks where the tag is present. [default: no-tasks]
--full-paths / --no-full-paths
Show full paths instead of releative. [default: no-full-paths]
--by-longname TEXT *
Select tests/tasks or suites by longname.
--exclude-by-longname TEXT *
Excludes tests/tasks or suites by longname.
--version
Show the version and exit.
--help
Show this message and exit.
Use -- --help
to see robot
help.
tasks
Discover tasks with the selected configuration, profiles, options and arguments.
You can use all known robot
arguments to filter for example by tags or to use pre-run-modifier.
Examples:
robotcode discover tasks
robotcode --profile regression discover tasks
robotcode --profile regression discover tasks --include regression --exclude wipANDnotready
Usage:
robotcode discover tasks [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--tags / --no-tags
Show the tags that are present. [default: no-tags]
--full-paths / --no-full-paths
Show full paths instead of releative. [default: no-full-paths]
--by-longname TEXT *
Select tests/tasks or suites by longname.
--exclude-by-longname TEXT *
Excludes tests/tasks or suites by longname.
--version
Show the version and exit.
--help
Show this message and exit.
Use -- --help
to see robot
help.
tests
Discover tests with the selected configuration, profiles, options and arguments.
You can use all known robot
arguments to filter for example by tags or to use pre-run-modifier.
Examples:
robotcode discover tests
robotcode --profile regression discover tests
robotcode --profile regression discover tests --include regression --exclude wipANDnotready
Usage:
robotcode discover tests [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--tags / --no-tags
Show the tags that are present. [default: no-tags]
--full-paths / --no-full-paths
Show full paths instead of releative. [default: no-full-paths]
--by-longname TEXT *
Select tests/tasks or suites by longname.
--exclude-by-longname TEXT *
Excludes tests/tasks or suites by longname.
--version
Show the version and exit.
--help
Show this message and exit.
Use -- --help
to see robot
help.
language-server
Run Robot Framework Language Server.
Usage:
robotcode language-server [OPTIONS] [PATHS]...
Options:
--stdio
Run in
stdio
mode. (Equivalent to--mode stdio
) NOTE: This option is mutually exclusive with options: pipe-name, port, socket, mode, bind, tcp, pipe. [env var: ROBOTCODE_STDIO]--tcp [<ADDRESS>:]<PORT>
Run in
tcp
server mode and listen at the given port. (Equivalent to--mode tcp --port <port>
) NOTE: This option is mutually exclusive with options: pipe-name, port, socket, mode, stdio, pipe.--socket [<ADDRESS>:]<PORT>
Run in
socket
mode and connect to the given port. (Equivalent to--mode socket --port <port>
) NOTE: This option is mutually exclusive with options: pipe-name, port, mode, tcp, stdio, pipe.--pipe NAME
Run in
pipe
mode and connect to the given pipe name. (Equivalent to--mode pipe --pipe-name <name>
) NOTE: This option is mutually exclusive with options: pipe-name, port, socket, mode, bind, tcp, stdio.--mode [socket|stdio|pipe|tcp]
The mode to use for the debug launch server. NOTE: This option is mutually exclusive with options: socket, stdio, tcp, pipe. [env var: ROBOTCODE_MODE; default: stdio]
--port PORT
The port to listen on or connect to. (Only valid for
tcp
andsocket mode
) NOTE: This option is mutually exclusive with options: pipe-name, pipe. [env var: ROBOTCODE_PORT; default: 6610; 1<=x<=65535]--bind ADDRESS *
Specify alternate bind address. If no address is specified
localhost
is used. (Only valid for tcp and socket mode) NOTE: This option is mutually exclusive with options: pipe-name, pipe. [env var: ROBOTCODE_BIND; default: 127.0.0.1]--pipe-name NAME
The pipe to listen on or connect to. (Only valid in
pipe
andpipe-server
mode) NOTE: This option is mutually exclusive with options: port, socket, bind, tcp, stdio, pipe. [env var: ROBOTCODE_PIPE_NAME]--version
Show the version and exit.
--help
Show this message and exit.
libdoc
Runs libdoc
with the selected configuration, profiles, options and arguments.
The options and arguments are passed to libdoc
as is.
Usage:
robotcode libdoc [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--version
Show the version and exit.
--help
Show this message and exit.
Use -- --help
to see the libdoc
help.
new
TODO: Create a new Robot Framework project.
TODO: This is not implemented yet.
Usage:
robotcode new [OPTIONS]
Options:
--help
Show this message and exit.
profiles
Shows information on defined profiles.
Usage:
robotcode profiles [OPTIONS] COMMAND [ARGS]...
Options:
--help
Show this message and exit.
Commands:
Lists the defined profiles in the current configuration.
Shows the given profile configuration.
list
Lists the defined profiles in the current configuration.
Usage:
robotcode profiles list [OPTIONS] [PATHS]...
Options:
-h, --show-hidden
Show hidden profiles.
-sp, --sort-by-precedence
Sort by precedence.
--help
Show this message and exit.
show
Shows the given profile configuration.
Usage:
robotcode profiles show [OPTIONS] [PATHS]...
Options:
-n, --no-evaluate
Don't evaluate expressions in the profile.
--help
Show this message and exit.
rebot
Runs rebot
with the selected configuration, profiles, options and arguments.
The options and arguments are passed to rebot
as is.
Usage:
robotcode rebot [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--version
Show the version and exit.
--help
Show this message and exit.
Use -- --help
to see rebot
help.
repl
Run Robot Framework interactively.
Usage:
robotcode repl [OPTIONS] [FILES]...
Options:
-v, --variable name:value *
Set variables in the test data. see
robot --variable
option.-V, --variablefile PATH *
Python or YAML file file to read variables from. see
robot --variablefile
option.-P, --pythonpath PATH *
Additional locations where to search test libraries and other extensions when they are imported. see
robot --pythonpath
option.-k, --show-keywords
Executed keywords will be shown in the output.
-i, --inspect
Activate inspection mode. This forces a prompt to appear after the REPL script is executed.
-d, --outputdir DIR
Where to create output files. see
robot --outputdir
option.-o, --output FILE
XML output file. see
robot --output
option.-r, --report FILE
HTML output file. see
robot --report
option.-l, --log FILE
HTML log file. see
robot --log
option.-x, --xunit FILE
xUnit output file. see
robot --xunit
option.--help
Show this message and exit.
robot
Runs robot
with the selected configuration, profiles, options and arguments.
The options and arguments are passed to robot
as is.
Examples:
robotcode robot
robotcode robot tests
robotcode robot -i regression -e wip tests
robotcode --profile ci robot -i regression -e wip tests
Usage:
robotcode robot [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--by-longname TEXT *
Select tests/tasks or suites by longname.
--exclude-by-longname TEXT *
Excludes tests/tasks or suites by longname.
--version
Show the version and exit.
--help
Show this message and exit.
Use -- --help
to see robot
help.
testdoc
Runs testdoc
with the selected configuration, profiles, options and arguments.
The options and arguments are passed to testdoc
as is.
Usage:
robotcode testdoc [OPTIONS] [ROBOT_OPTIONS_AND_ARGS]...
Options:
--version
Show the version and exit.
--help
Show this message and exit.
Use -- --help
to see testdoc
help.