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

Suggestion: Add a way to specify the test name to capsule test. #26

Open
jordanmack opened this issue Feb 19, 2021 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@jordanmack
Copy link
Contributor

Describe the bug
There is no way to specify the test that should be run using capsule test. This would be helpful to filter the tests that are executed. This is supported in Cargo with cargo test <testname>.

Additional context
username@dev1:~$ capsule --version
Capsule 0.4.4

@TheWaWaR
Copy link
Contributor

TheWaWaR commented Dec 28, 2021

The suggestion way to run contract tests is:

# Test debug version of the contract
$ CAPSULE_TEST_ENV=debug cargo test -p tests
# Test release version of the contract
$ CAPSULE_TEST_ENV=release cargo test -p tests

Since capsule test is just a proxy of above command.

@blckngm blckngm added the enhancement New feature or request label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants