Test case
declareTestCase
File: test-cases/<name>.ts
Which parameters to run, and how often. Every list is crossed with every other, and each combination runs iterations times. Run thunderjar generate after adding a parameter, so its name type-checks here.
export default declareTestCase({
baseImage: ["node20"],
codeState: ["baseline"],
promptSet: ["snerk"],
harnessModel: ["claude-code-2.1.311/claude-sonnet-5-5"],
task: "is-prime",
initialPrompt: ["plain"],
iterations: 5,
});baseImage
Type: BaseImageName[]
Folders under parameters/baseImages/.
codeState
Type: CodeStateName[]
Folders under parameters/codeStates/.
promptSet
Type: PromptSetName[]
Folders under parameters/promptSets/.
harnessModel
Type: `${harness}/${modelId}`[]
A folder under parameters/harnessModels/, and the model ID to give it.
task
Type: TaskName
A folder under parameters/tasks/.
initialPrompt
Type: InitialPromptName[]
Files in that task's initial-prompts/.
iterations
Type: number
How many times to run each combination.
env
Type: Record<string, string>
Environment variables the agent's containers are given, with their values, e.g. { NODE_ENV: "test" }. Not secret: each run records them, and its postrun image keeps them, so its measurement containers see them too. They don't change any hash, so changing one doesn't rebuild a prerun image. For a secret, use secretEnv.
secretEnv
Type: string[]
Default: []
The names of more environment variables the agent's containers are given, e.g. ["DATABASE_URL"], each passed as docker run -e NAME, so its value comes from the shell that runs Thunderjar, as a harness's requiredEnv does. Its measurement containers are given them the same way, e.g. for a shell measurement that queries a database. The value is never on a command line, in a log, in a run's record or in its postrun image's config: only the name is recorded. If the agent writes a value into a file, the postrun image's files are searched for it before it's pushed, and run warns. run stops if one is unset. A runner on a runtime is sent them without listing them in runner.env.