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

Add examples for forc wallet #157

Open
crodas opened this issue Dec 30, 2023 · 0 comments
Open

Add examples for forc wallet #157

crodas opened this issue Dec 30, 2023 · 0 comments

Comments

@crodas
Copy link
Contributor

crodas commented Dec 30, 2023

Add examples that run on the CI similar to FuelLabs/sway#5374 for forc wallet

@crodas crodas self-assigned this Dec 30, 2023
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
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
@sdankel sdankel closed this as completed Jun 7, 2024
@sdankel sdankel reopened this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants