You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val generatedTest =Paths.get("${config.outputFolder}/${config.outputFilePrefix}.kt")
191
+
assertTrue(Files.exists(generatedTest))
192
+
193
+
/*
194
+
here, we only check the generated in text
195
+
as it requires to use method in SutHandler
196
+
*/
197
+
val testContent =String(Files.readAllBytes(generatedTest))
198
+
val expectedJdkPath ="org.evomaster.core.output.service.FakeController(extractSutJarNameWithEnvVarName(\"${config.sutDistEnvVarName}\", \"${config.sutJarEnvVarName}\"))"
199
+
val expectedSutPath =".setJavaCommand(extractJDKPathWithEnvVarName(\"${config.jdkEnvVarName}\"))"
Copy file name to clipboardExpand all lines: docs/options.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,6 +286,7 @@ There are 3 types of options:
286
286
|`instrumentMR_NET`|__Boolean__. Execute instrumentation for method replace with category NET. Note: this applies only for languages in which instrumentation is applied at runtime, like Java/Kotlin on the JVM. *Default value*: `false`.|
287
287
|`instrumentMR_OPENSEARCH`|__Boolean__. Execute instrumentation for method replace with category OPENSEARCH. Note: this applies only for languages in which instrumentation is applied at runtime, like Java/Kotlin on the JVM. *Default value*: `false`.|
288
288
|`instrumentMR_REDIS`|__Boolean__. Execute instrumentation for method replace with category REDIS. Note: this applies only for languages in which instrumentation is applied at runtime, like Java/Kotlin on the JVM. *Default value*: `false`.|
289
+
|`jdkEnvVarName`|__String__. Specify name of the environment variable that provides the JDK installation path. Note that the executable path will be resolved by appending 'bin/java'. *Default value*: `""`.|
289
290
|`languageModelConnector`|__Boolean__. Enable language model connector. *Default value*: `false`.|
290
291
|`languageModelConnectorNumberOfThreads`|__Int__. Number of threads for language model connector. No more threads than numbers of processors will be used. *Constraints*: `min=1.0`. *Default value*: `2`.|
291
292
|`languageModelName`|__String__. Large-language model name as listed in Ollama. *Default value*: `llama3.2:latest`.|
@@ -321,10 +322,13 @@ There are 3 types of options:
321
322
|`ssrf`|__Boolean__. To apply SSRF detection as part of security testing. *Depends on*: `security=true`. *Default value*: `false`.|
322
323
|`structureMutationProFS`|__Double__. Specify a probability of applying structure mutator during the focused search. *Constraints*: `probability 0.0-1.0`. *Default value*: `0.0`.|
323
324
|`structureMutationProbStrategy`|__Enum__. Specify a strategy to handle a probability of applying structure mutator during the focused search. *Valid values*: `SPECIFIED, SPECIFIED_FS, DPC_TO_SPECIFIED_BEFORE_FS, DPC_TO_SPECIFIED_AFTER_FS, ADAPTIVE_WITH_IMPACT`. *Default value*: `SPECIFIED`.|
325
+
|`sutDistEnvVarName`|__String__. Specify name of the environment variable that provides the the base distribution directory of the SUT, e.g., 'dist' directory of WFD. *Default value*: `""`.|
326
+
|`sutJarEnvVarName`|__String__. Specifies the name of the SUT JAR file that will be used together with `sutDistEnvVarName` to resolve the full SUT JAR path. *Default value*: `""`.|
324
327
|`taintForceSelectionOfGenesWithSpecialization`|__Boolean__. During mutation, force the mutation of genes that have newly discovered specialization from previous fitness evaluations, based on taint analysis. *Default value*: `false`.|
325
328
|`targetHeuristicsFile`|__String__. Where the target heuristic values file (if any) is going to be written (in CSV format). It is only used when processFormat is TARGET_HEURISTIC. *Default value*: `targets.csv`.|
326
329
|`testResourcePathToSaveMockedResponse`|__String__. Specify test resource path where to save mocked responses as separated files. *Default value*: `""`.|
327
330
|`thresholdDistanceForDataPool`|__Int__. Threshold of Levenshtein Distance for key-matching in Data Pool. *Constraints*: `min=0.0`. *Default value*: `2`.|
331
+
|`useEnvVarsForPathInTests`|__Boolean__. Use environment variables to define the paths required by External Drivers. This is necessary when the generated tests are executed on the different machine. Note that this setting only affects the generated test cases. *Default value*: `false`.|
328
332
|`useGlobalTaintInfoProbability`|__Double__. When sampling new individual, check whether to use already existing info on tainted values. *Constraints*: `probability 0.0-1.0`. *Default value*: `0.0`.|
329
333
|`useInsertionForSqlHeuristics`|__Boolean__. Specify whether insertions should be used to calculate SQL heuristics instead of retrieving data from real databases. *Default value*: `false`.|
0 commit comments