Skip to content

Commit

Permalink
Change how credentials are passed for building the plugin to property…
Browse files Browse the repository at this point in the history
… passing
  • Loading branch information
pderakhshanfar committed Aug 21, 2023
1 parent bbd9100 commit f5e01d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<USERNAME> -Dspace.pass=<TOKEN>`.

`<TOKEN>` 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=<USERNAME> -Dspace.pass=<TOKEN>`.

`<TOKEN>` is generated by Space, which has access to Automatically generating unit tests maven packages.

## Plugin Configuration File

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5e01d0

Please sign in to comment.