You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following test failure while trying to build the latest version:
Logs
running 10 tests
test compgen::tests::test_get_last_word ... ok
test parser::tests::test_parse_no_long_flag_arg ... ok
test parser::tests::test_parse_no_long_option_arg ... ok
test parser::tests::test_parse_line ... ok
test utils::tests::test_cobol ... ok
test parser::tests::test_parse_with_long_flag_arg ... ok
test parser::tests::test_parse_with_long_flag_arg_single_dash ... ok
test parser::tests::test_parse_positional_arg ... ok
test parser::tests::test_parse_with_long_option_arg ... ok
test parser::tests::test_parse_with_long_option_arg_single_dash ... ok
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/bin/argc/main.rs (target/debug/deps/argc-05cd09e0693dbda7)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/tests.rs (target/debug/deps/integration-343b0242d08b2e78)
running 79 tests
test cli::help ... ok
test cli::version ... ok
test argcfile::argcfile_path ... ok
test fail::arg_miss_default_fn ... ok
test fail::cmd_miss_fn ... ok
test fail::arg_miss_choice_fn ... ok
test fail::conflict_alias ... ok
test fail::conflict_short_flag ... ok
test fail::conflict_cmd ... ok
test fail::conflict_long_flag ... ok
test fail::conflict_positional ... ok
test fail::conflict_long_option ... ok
test fail::conflict_short_option ... ok
test fail::option_miss_choice_fn ... ok
test fail::unsupported_tag ... ok
test fail::option_miss_default_fn ... ok
test fail::unexpected_arg ... ok
test cli::compgen ... ok
test create::create ... ok
test create::create_with_tasks ... ok
test argcfile::argcfile ... ok
test compgen::nested_subcmds ... ok
test compgen::subcmds ... ok
test main_fn::nested_subcmd_no_main ... ok
test main_fn::subcmd_no_main ... ok
test export::case1 ... ok
test spec::undefine_positionals ... ok
test misc::escape ... ok
test param_fn::case1 ... ok
test main_fn::nested_subcmd_main ... ok
test validate::arg_choice ... ok
test validate::arg_choice_fn_pass ... ok
test compgen::multiple ... ok
test spec::arg_no_param ... ok
test validate::arg_missing ... ok
test validate::arg_help_subcmd ... ok
test validate::arg_unknown ... ok
test spec::arg_no_option ... ok
test main_fn::no_main ... ok
test spec::option_help ... ok
test validate::arg_choice_fn_skip ... ok
test validate::option_choice_fn_pass ... ok
test validate::flag_not_multiple ... ok
test param_fn::case3 ... ok
test spec::option_shorts ... ok
test spec::same_option_positional ... ok
test compgen::shorts ... ok
test validate::option_not_multiple ... ok
test validate::option_mismatch_values ... ok
test main_fn::with_main ... ok
test validate::param_missing ... ok
test validate::flag_with_value ... ok
test validate::option_choice ... ok
test param_fn::case2 ... ok
test validate::help_version_shadow ... ok
test compgen::positionals ... ok
test spec::arg_two_multi ... ok
test wrap_help::wrap ... ok
test validate::option_missing ... ok
test validate::option_unknown ... ok
test validate::param_missing_parent ... ok
test validate::option_choice_fn_skip ... ok
test validate::empty_choices ... ok
test spec::dashdash_split ... ok
test main_fn::subcmd_main ... ok
test wrap_help::wrap2 ... ok
test wrap_help::nowrap ... ok
test validate::arg_invalid_subcmd ... ok
test validate::help_version ... ok
test spec::arg_subcmd_help ... ok
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__compgen__choice.snap.new
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__validate__arg_choice_fn.snap.new
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__validate__arg_choice_multi.snap.new
test validate::arg_choice_fn ... FAILED
test compgen::choice ... FAILED
test validate::arg_choice_multi ... FAILED
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__validate__option_choice_fn.snap.new
test validate::option_choice_fn ... FAILED
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__spec__option_eval.snap.new
test spec::option_eval ... FAILED
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__validate__choice_access_vars.snap.new
test validate::choice_access_vars ... FAILED
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__validate__option_choice_multi.snap.new
stored new snapshot /build/argc/src/argc-1.1.0/tests/snapshots/integration__spec__arg_eval.snap.new
test validate::option_choice_multi ... FAILED
test spec::arg_eval ... FAILED
test interrupt::interrupt ... ok
failures:
---- validate::arg_choice_fn stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__validate__arg_choice_fn.snap
Snapshot: arg_choice_fn
Source: tests/validate.rs:64
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
2 2 â
3 3 â OUTPUT
4 4 â cat >&2 <<-'EOF'
5 5 â error: invalid value 'val' for '[VAL]'
6 â- [possible values: abc, def, ghi]
6 â+ [possible values: ]
7 7 â
8 8 â For more information, try '--help'.
9 9 â
10 10 â EOF
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'validate::arg_choice_fn' panicked at 'snapshot assertion for 'arg_choice_fn' failed in line 64', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
---- compgen::choice stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__compgen__choice.snap
Snapshot: choice
Source: tests/compgen.rs:164
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
0 0 â ************ COMPGEN `prog --oa ` ************
1 â-abc
2 â-def
3 â-ghi
4 1 â
2 â+
5 3 â ************ COMPGEN `prog --ob ` ************
6 4 â x
7 5 â y
8 6 â z
âââââââââââââžâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
16 14 â
17 15 â ************ COMPGEN `prog v1 ` ************
18 16 â --oa
19 17 â --ob
20 â-abc
21 â-def
22 â-ghi
23 18 â
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'compgen::choice' panicked at 'snapshot assertion for 'choice' failed in line 164', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- validate::arg_choice_multi stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__validate__arg_choice_multi.snap
Snapshot: arg_choice_multi
Source: tests/validate.rs:87
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
1 1 â prog cmdl abc val
2 2 â
3 3 â OUTPUT
4 4 â cat >&2 <<-'EOF'
5 â-error: invalid value 'val' for '[VAL]...'
6 â- [possible values: abc, def, ghi]
5 â+error: invalid value 'abc' for '[VAL]...'
6 â+ [possible values: ]
7 7 â
8 8 â For more information, try '--help'.
9 9 â
10 10 â EOF
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'validate::arg_choice_multi' panicked at 'snapshot assertion for 'arg_choice_multi' failed in line 87', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
---- validate::option_choice_fn stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__validate__option_choice_fn.snap
Snapshot: option_choice_fn
Source: tests/validate.rs:131
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
2 2 â
3 3 â OUTPUT
4 4 â cat >&2 <<-'EOF'
5 5 â error: invalid value 'val' for '<CC>'
6 â- [possible values: abc, def, ghi]
6 â+ [possible values: ]
7 7 â
8 8 â For more information, try '--help'.
9 9 â
10 10 â EOF
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'validate::option_choice_fn' panicked at 'snapshot assertion for 'option_choice_fn' failed in line 131', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
---- spec::option_eval stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__spec__option_eval.snap
Snapshot: option_eval
Source: tests/spec.rs:21
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
71 71 â ************ RUN ************
72 72 â prog cmda --cc abc
73 73 â
74 74 â OUTPUT
75 â-argc_cc=abc
76 â-argc__args=( )
77 â-argc__fn=cmda
78 â-cmda
75 â+cat >&2 <<-'EOF'
76 â+error: invalid value 'abc' for '<CC>'
77 â+ [possible values: ]
78 â+
79 â+For more information, try '--help'.
80 â+
81 â+EOF
82 â+exit 1
79 83 â
80 84 â ************ RUN ************
81 85 â prog cmda -soa soa
82 86 â
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'spec::option_eval' panicked at 'snapshot assertion for 'option_eval' failed in line 21', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
---- validate::choice_access_vars stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__validate__choice_access_vars.snap
Snapshot: choice_access_vars
Source: tests/validate.rs:209
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
2 2 â
3 3 â OUTPUT
4 4 â cat >&2 <<-'EOF'
5 5 â error: invalid value 'foo' for '[VAL]'
6 â- [possible values: abc]
6 â+ [possible values: ]
7 7 â
8 8 â For more information, try '--help'.
9 9 â
10 10 â EOF
âââââââââââââžâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
15 15 â
16 16 â OUTPUT
17 17 â cat >&2 <<-'EOF'
18 18 â error: invalid value 'foo' for '[VAL]'
19 â- [possible values: def]
19 â+ [possible values: ]
20 20 â
21 21 â For more information, try '--help'.
22 22 â
23 23 â EOF
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'validate::choice_access_vars' panicked at 'snapshot assertion for 'choice_access_vars' failed in line 209', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
---- validate::option_choice_multi stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__validate__option_choice_multi.snap
Snapshot: option_choice_multi
Source: tests/validate.rs:154
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
1 1 â prog cmda --ce abc val
2 2 â
3 3 â OUTPUT
4 4 â cat >&2 <<-'EOF'
5 â-error: invalid value 'val' for '<CE>'
6 â- [possible values: abc, def, ghi]
5 â+error: invalid value 'abc' for '<CE>'
6 â+ [possible values: ]
7 7 â
8 8 â For more information, try '--help'.
9 9 â
10 10 â EOF
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'validate::option_choice_multi' panicked at 'snapshot assertion for 'option_choice_multi' failed in line 154', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
---- spec::arg_eval stdout ----
âââââââââââââââââââââââââââââââ Snapshot Summary âââââââââââââââââââââââââââââââ
Snapshot file: tests/snapshots/integration__spec__arg_eval.snap
Snapshot: arg_eval
Source: tests/spec.rs:58
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Expression: data
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
-old snapshot
+new results
âââââââââââââŽâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
54 54 â ************ RUN ************
55 55 â prog cmdj abc
56 56 â
57 57 â OUTPUT
58 â-argc_val=abc
59 â-argc__args=( abc )
60 â-argc__fn=cmdj
61 â-cmdj abc
58 â+cat >&2 <<-'EOF'
59 â+error: invalid value 'abc' for '[VAL]'
60 â+ [possible values: ]
61 â+
62 â+For more information, try '--help'.
63 â+
64 â+EOF
65 â+exit 1
62 66 â
63 67 â ************ RUN ************
64 68 â prog cmdp v1 v2
65 69 â
âââââââââââââīâââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'spec::arg_eval' panicked at 'snapshot assertion for 'arg_eval' failed in line 58', /build/.cargo/registry/src/github.com-1ecc6299db9ec823/insta-1.29.0/src/runtime.rs:569:9
failures:
compgen::choice
spec::arg_eval
spec::option_eval
validate::arg_choice_fn
validate::arg_choice_multi
validate::choice_access_vars
validate::option_choice_fn
validate::option_choice_multi
test result: FAILED. 71 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.02s
error: test failed, to rerun pass `--test integration`
I'm wondering if there is a setup procedure for test or maybe a recommended way to run them?
The text was updated successfully, but these errors were encountered:
Hey, AUR maintainer of
argc
here ððžI'm getting the following test failure while trying to build the latest version:
Logs
I'm wondering if there is a setup procedure for test or maybe a recommended way to run them?
The text was updated successfully, but these errors were encountered: