Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update utbot-gradle docs with -P parameters (#376)
  • Loading branch information
mmvpm committed Jul 1, 2022
commit 2b515e17df5cd56ddaf7dd65d135dc90641f86bb
19 changes: 19 additions & 0 deletions utbot-gradle/docs/utbot-gradle.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,25 @@ __Kotlin DSL:__
}
```

Also, you can configure the task using `-P<parameterName>=<value>` syntax.

For example,
```Kotlin
generateTestsAndSarifReport
-PtargetClasses='[com.abc.Main, com.qwerty.Util]'
-PprojectRoot='C:/.../SomeDirectory'
-PgeneratedTestsRelativeRoot='build/generated/test'
-PsarifReportsRelativeRoot='build/generated/sarif'
-PtestFramework=junit5
-PmockFramework=mockito
-PgenerationTimeout=60000
-PcodegenLanguage=java
-PmockStrategy='other-packages'
-PstaticsMocking='mock-statics'
-PforceStaticMocking=force
-PclassesToMockAlways='[org.slf4j.Logger, java.util.Random]'
```

**Note:** All configuration fields have default values, so there is no need to configure the plugin if you don't want to.

**Description of fields:**
Expand Down