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
apiKey = "demo" // see https://docs.langchain4j.dev/integrations/language-models/open-ai/
134
-
model = "gpt-4o-mini"
135
-
samples = {{SAMPLES}}
136
-
137
-
prompt { stimulusMatrix ->
138
-
def prompt = [:] // create prompt model
139
-
prompt.promptContent = """generate a junit test class to test the functionality of the following interface specification: \`\`\`\${stimulusMatrix.lql}\`\`\`. Assume that the specification is encapsulated in a class that uses the same naming as in the interface specification. Only output the JUnit test class and nothing else."""
apiKey = "demo" // see https://docs.langchain4j.dev/integrations/language-models/open-ai/
354
+
model = "gpt-4o-mini"
355
+
samples = {{CODE_SAMPLES}}
356
+
357
+
// custom DSL command offered by the action (for each stimulus matrix, create one prompt to obtain impls)
358
+
prompt { stimulusMatrix ->
359
+
// can by for any prompts: FA, impls, models etc.
360
+
def prompt = [:] // create prompt model
361
+
prompt.promptContent = """implement a java class with the following interface specification, but do not inherit a java interface: \`\`\`\${stimulusMatrix.lql}\`\`\`. Only output the java class and nothing else."""
362
+
prompt.id = "lql_prompt"
363
+
return [prompt] // list of prompts is expected
364
+
}
365
+
}
366
+
367
+
// add tests: SBST
368
+
action(name: 'evoSuite', type: 'EvoSuite') {
369
+
searchBudget = 60 // we need this as upper bound for timeouts
// custom DSL command offered by the action (for each stimulus matrix, create one prompt to obtain impls)
426
+
prompt { stimulusMatrix ->
427
+
// can by for any prompts: FA, impls, models etc.
428
+
def prompt = [:] // create prompt model
429
+
prompt.promptContent = """implement a java class with the following interface specification, but do not inherit a java interface: \`\`\`\${stimulusMatrix.lql}\`\`\`. Only output the java class and nothing else."""
430
+
prompt.id = "lql_prompt"
431
+
return [prompt] // list of prompts is expected
432
+
}
433
+
}
434
+
435
+
// add tests: SBST
436
+
action(name: 'evoSuite', type: 'EvoSuite') {
437
+
searchBudget = 60 // we need this as upper bound for timeouts
0 commit comments