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

cli: Allow passing arguments to an underlying script #1914

Merged
merged 2 commits into from
May 29, 2022
Merged

cli: Allow passing arguments to an underlying script #1914

merged 2 commits into from
May 29, 2022

Conversation

sushi-shi
Copy link
Contributor

Sometimes it is desirable to run only specific test cases. For this it is required to let the underlying script know which tests should be run.
For example, given this Anchor.toml

[scripts]
mocha = "yarn run ts-mocha -t 1000000"

It is desirable to be able to run:

$ anchor run mocha -- ./tests/one-specific-test.ts

@armaniferrante armaniferrante merged commit 58db41b into coral-xyz:master May 29, 2022
@armaniferrante
Copy link
Member

Thank you!

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.

2 participants