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

Added example for running specific scenario via cli #1762

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

taylorflatt
Copy link
Contributor

Why?

On a number of occasions I have found colleagues wanting to run a specific scenario of a given test script. Early on I saw folks would just comment things out to get to the behavior they wanted or would start nesting scripts and fanning tests out.

What?

  • Added an example to the scenario section outlining how to effectively use an environment variable to run a specific scenario among a group.
  • Tested example in all versions that it works as expected.

image

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/next folder of the documentation.
  • I have reflected my changes in the docs/sources/v{most_recent_release} folder of the documentation.
  • I have reflected my changes in the relevant folders of the two previous k6 versions of the documentation (if still applicable to previous versions).

Related PR(s)/Issue(s)

@taylorflatt taylorflatt changed the title Added ex for custom cli env exec. Added example for running specific scenario via cli Oct 4, 2024
@taylorflatt
Copy link
Contributor Author

Any thoughts @heitortsergent?

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

Successfully merging this pull request may close these issues.

1 participant