Version: |
org.nasdanika.models.java.cli@2024.8.0
|
---|
Usage: nsd java junit [-hVw] [--[no-]ai] [--[no-]comment-response] [--disabled]
[--progress-console] [--progress-data] [--progress-json]
[--api-endpoint=<apiEndpoint>] [-c=<classes>]
[--class-suffix=<classSuffix>] [-J=<jacoco>]
[-k=<apiKey>] [-l=<limit>] [-m=<deploymentOrModelName>]
[--package-suffix=<packageSuffix>]
[--progress-output=<progressOutput>] [-r=<prompt>]
[-s=<sources>] [-t=<coverageType>]
[-v=<apiKeyEnvironmentVariable>] [-e[=<excludes>...]]...
[-i[=<includes>...]]... <projectDir> <coverageThreshold>
<output>
Generates JUnit tests
<projectDir> Project directory
<coverageThreshold> Coverage threshold
<output> Output directory
relative to the project directory
--[no-]ai Use AI, defaults to true
--api-endpoint=<apiEndpoint>
OpenAPI endpoint, defaults to
https://api.openai.com/v1/chat/completions
-c, --classes=<classes> Classes directory path relative
to the project directory,
defaults to target/classes
--class-suffix=<classSuffix>
Test class suffix
defaults to Tests
--[no-]comment-response
Comment AI responses
defaults to true
--disabled Generate disabled tests
-e, --exclude[=<excludes>...]
Source excludes
Ant pattern
-h, --help Show this help message and exit.
-i, --include[=<includes>...]
Source includes
Ant pattern
-J, --jacoco=<jacoco> jacoco.exec file path relative
to the project directory,
defaults to target/jacoco.exec
-k, --api-key=<apiKey> OpenAPI key
-l, --limit=<limit> Maximum number of test classes
to generate
-m, --model=<deploymentOrModelName>
OpenAPI deployment or model
defaults to gpt-4
--package-suffix=<packageSuffix>
Test package suffix
defaults to .tests
--progress-console Output progress to console
--progress-data Output progress data
--progress-json Output progress in JSON
--progress-output=<progressOutput>
Output file for progress monitor
-r, --prompt=<prompt> Propmt
defaults to 'Generate a JUnit 5 test method
leveraging Mockito for the following Java method'
-s, --sources=<sources> Sources directory path relative
to the project directory,
defaults to src/main/java
-t, --coverage-type=<coverageType>
Coverage type
Valid values: complexity, instruction, branch, line
defaults to line
-v, --api-key-variable=<apiKeyEnvironmentVariable>
OpenAPI key environment variable
defaults to OPENAI_API_KEY
-V, --version Print version information and exit.
-w, --overwrite Overwrite existing tests