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: Add --skip-build flag to anchor test resolve #276 #301

Merged
merged 2 commits into from
May 22, 2021

Conversation

ncnxx
Copy link
Contributor

@ncnxx ncnxx commented May 22, 2021

This PR adds another flag called --skip-build to the command anchor test to skip the building of Solana program in the workspace. This would save time when working on a large workspace where building would take time.

Previously, if the users would like to alter their tests and run anchor test again, the cli would build everything again. With, --skip-build, tests could be run right away without going through the building of source code again.

Example usage:

anchor test --skip-build

workspace % anchor test --skip-build


  someProgram
    ✓ Should initialize (59397ms)
    ✓ Should pass the test (4472ms)

@ncnxx ncnxx changed the title cli: Add --skip-build flag to anchor test cli: Add --skip-build flag to anchor test resolve #276 May 22, 2021
@armaniferrante armaniferrante merged commit 691a30a into coral-xyz:master May 22, 2021
@armaniferrante
Copy link
Member

Awesome thanks for this!

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.

3 participants