Skip to content

cli: Add --skip-build flag to anchor test resolve #276#301

Merged
armaniferrante merged 2 commits into
otter-sec:masterfrom
ncnxx:master
May 22, 2021
Merged

cli: Add --skip-build flag to anchor test resolve #276#301
armaniferrante merged 2 commits into
otter-sec:masterfrom
ncnxx:master

Conversation

@ncnxx

@ncnxx ncnxx commented May 22, 2021

Copy link
Copy Markdown
Contributor

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 otter-sec:master May 22, 2021
@armaniferrante

Copy link
Copy Markdown
Contributor

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