Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation feedback: /docs/sources/k6/v0.55.x/javascript-api/k6-execution.md #1831

Open
bernhard-dwe opened this issue Jan 3, 2025 · 2 comments

Comments

@bernhard-dwe
Copy link

It would be useful to know how to alter the return/exit code of k6 from the script. I.e. how can I communicate to code calling k6 that this run of k6 was successful or unsuccessful?

@heitortsergent
Copy link
Collaborator

@grafana/k6-core is this doable from a k6 script? 🤔

@andrewslotin
Copy link
Contributor

@bernhard-dwe, the abort() method stops the test run and exits with a predefined 108 code. If you want to keep the test running but mark it as failed upon exit, then this issue may be relevant to you. We are gathering requirements and would love to learn more about your use case. Please feel free to comment on the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants