Gradle plugin for using the Robot Framework. This project is inspired by the robotframework maven plugin. Its goal is to enable you to use the Robot Framework in a gradle project without the need to install anything extra (e.g. Robotframework, Jython, etc.).
❗
|
This plugin is just a convenient wrapper for the robotframework standalone-jar-distribution! Therefore, it primarily addresses RF libraries written in java. |
General |
|
Main |
|
Develop |
Just add the following lines to you build.gradle(.kts)
import de.qualersoft.robotframework.gradleplugin.tasks
plugins {
id("de.qualersoft.robotframework") version "<latest>"
}
tasks.register<RunRobotTask>("robotTest") {
sources = fileTree("src/test") {
include("**/*.robot")
}
}
ℹ️
|
Don’t forget to replace the version "<latest>" with the appropriate version😉
|
Assuming you have some robot test suite files somewhere under your src/test
folder, calling
./gradlew robotTest
starts the test execution.
For further configuration and examples have a look at the test resources.
Available tasks (*)
For details see robot framework tasks
- RunRobotTask
-
same as
robot.run
command - LibdocTask
-
same as
robot.libdoc
command - TestdocTask
-
same as
robot.testdoc
command - RebotTask
-
same as
robot.rebot
command - TidyTask
-
same as
robot.tidy
command
(*) All task implementations are in package de.qualersoft.robotframework.gradleplugin.tasks