feat(benchmark): Add benchmark scenario for binary files (#10648)

This commit is contained in:
Tomi Turtiainen
2024-09-03 16:57:49 +03:00
committed by GitHub
parent c97a96d314
commit d5d7b24f55
4 changed files with 98 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ export function handleSummary(data) {
env: {
API_BASE_URL: this.opts.n8nApiBaseUrl,
K6_CLOUD_TOKEN: this.opts.k6ApiToken,
SCRIPT_FILE_PATH: augmentedTestScriptPath,
},
})`${k6ExecutablePath} run ${flattedFlags} ${augmentedTestScriptPath}`;
@@ -82,7 +83,7 @@ export function handleSummary(data) {
const augmentedTestScript = `${testScript}\n\n${summaryScript}`;
const tempFilePath = tmpfile(`${scenarioRunName}.ts`, augmentedTestScript);
const tempFilePath = tmpfile(`${scenarioRunName}.js`, augmentedTestScript);
return tempFilePath;
}