-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add examples for forc wallet
#157
Labels
Comments
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Jan 26, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (specially mocking user input) that should only be available for the the binaries to be executed from the unit tests, but should be excluded otherwise. This PR add the ability to include code through `option_env!` macro, since the `CLI_TEST` should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Jan 26, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
7 tasks
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Jan 31, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Feb 3, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Feb 3, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Feb 5, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Feb 5, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Feb 7, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
crodas
added a commit
to FuelLabs/sway
that referenced
this issue
Feb 8, 2024
The cli_examples are converted also to unit tests. These unit tests will compile a binary and execute it. The main goal is to enforce documentation correctness through the unit tests. Sometimes a special case should be hard-coded (especially mocking user input) that should only be available for the binaries to be executed from the unit tests but should be excluded otherwise. This PR adds the ability to include code through option_env! macro since the CLI_TEST should only be defined in for the binary to be executed from the unit tests. This PR is a pre-requisite to solve FuelLabs/forc-wallet#157 This PR will include more examples as part of #5444
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add examples that run on the CI similar to FuelLabs/sway#5374 for
forc wallet
The text was updated successfully, but these errors were encountered: