diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6845c74d2..9b922cb37 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,9 +8,20 @@ In this document you can find the overall structure of TestSpark plugin. The cla Run `gradle buildPlugin`. ### Including Test generation using Grazie (for JetBrains employees only!) -to include test generation using Grazie in the build process, you need to set two environment variables: -- `SPACE_TG_USERNAME`: Your space username. -- `SPACE_TG_PASS`: Token generated by Space, which has access to Automatically generating unit tests maven packages. +to include test generation using Grazie in the build process, you need to pass Space username and token as properties: +`gradle buildPlugin -Dspace.username= -Dspace.pass=`. + +`` is generated by Space, which has access to Automatically generating unit tests maven packages. + +## Run IDE for UI tests +In IDEA, run the `Run IDE for UI Tests` configuration. Alternatively, use the following command: +`gradle runIdeForUiTests`. + +### Including Test generation using Grazie (for JetBrains employees only!) +to include test generation using Grazie in the build process, you need to pass Space username and token as properties: +`gradle runIdeForUiTests -Dspace.username= -Dspace.pass=`. + +`` is generated by Space, which has access to Automatically generating unit tests maven packages. ## Plugin Configuration File diff --git a/build.gradle.kts b/build.gradle.kts index 586798c9e..5d423a40e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,8 +11,8 @@ fun properties(key: String) = project.findProperty(key).toString() val thunderdomeVersion = "1.0.5" -val spaceUsername = System.getenv("SPACE_TG_USERNAME")?.toString().orEmpty() -val spacePassword = System.getenv("SPACE_TG_PASS")?.toString().orEmpty() +val spaceUsername = System.getProperty("space.username")?.toString().orEmpty() +val spacePassword = System.getProperty("space.pass")?.toString().orEmpty() plugins { // Java support