We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nargo test
Attempted to run a list of tests as with cargo test, i.e.
cargo test
❯ nargo run test field::tests::test_to_le_radix_257 field::tests::test_to_le_radix_1 field::tests::test_to_le_radix_3
But I got the error:
error: unexpected argument 'field::tests::test_to_le_radix_1' found Usage: nargo test [OPTIONS] [TEST_NAME] For more information, try '--help'.
Because only one TEST_NAME is supported.
TEST_NAME
(Note that in this case, I can filter with the string "field::tests::test_to_le_radix_", but that's not always the case.)
"field::tests::test_to_le_radix_"
Support multiple filters, i.e. nargo test [OPTIONS] str1 str2 .. -> test_name.contains(str1) || test_name.contains(str2)
nargo test [OPTIONS] str1 str2 ..
test_name.contains(str1) || test_name.contains(str2)
Yes
Call nargo multiple times with the different TEST_NAME's
nargo
No response
Nice-to-have
None
The text was updated successfully, but these errors were encountered:
It seems cargo test doesn't support that either. That doesn't mean we shouldn't support it though...
Sorry, something went wrong.
It seems cargo test doesn't support that either.
How are you invoking it? I use cargo test -- name1 name2, e.g.
cargo test -- name1 name2
cargo test -- parser::parser::attributes::tests::parses_inner_attribute_as_tag parser::parser::attributes::tests::parses_inner_attribute_as_tag_with_nested_brackets tests::cfg_disabled_attribute_on_function tests::cfg_disabled_attribute_on_function_rejects_parse_error tests::cfg_disabled_attribute_on_global tests::cfg_disabled_attribute_on_module tests::cfg_disabled_attribute_on_use
Oh, I was doing cargo test one two. That works with just one test.
cargo test one two
asterite
Successfully merging a pull request may close this issue.
Problem
Attempted to run a list of tests as with
cargo test
, i.e.❯ nargo run test field::tests::test_to_le_radix_257 field::tests::test_to_le_radix_1 field::tests::test_to_le_radix_3
But I got the error:
Because only one
TEST_NAME
is supported.(Note that in this case, I can filter with the string
"field::tests::test_to_le_radix_"
, but that's not always the case.)Happy Case
Support multiple filters, i.e.
nargo test [OPTIONS] str1 str2 ..
->test_name.contains(str1) || test_name.contains(str2)
Workaround
Yes
Workaround Description
Call
nargo
multiple times with the differentTEST_NAME
'sAdditional Context
No response
Project Impact
Nice-to-have
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: