Skip to content

Instantly share code, notes, and snippets.

@hassy
Created October 7, 2025 09:18
Show Gist options
  • Save hassy/ecd4c461c79493e1efa2bbaeff0f62c5 to your computer and use it in GitHub Desktop.
Save hassy/ecd4c461c79493e1efa2bbaeff0f62c5 to your computer and use it in GitHub Desktop.
Customizing Artillery config via env vars (Playwright slowMo)
export const config = {
target: "https//www.example.com",
engines: {
playwright: {
launchOptions: {
slowMo: parseInt(process.env.SLOW_MO, 10),
}
}
}
};
export const scenarios = [
{
engine: 'playwright',
testFunction: myFunction
}
];
// and run with e.g.
// SLOW_MO=100 artillery run test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment