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

Errors running cargo test #72

Open
kianmeng opened this issue Sep 30, 2022 · 0 comments
Open

Errors running cargo test #72

kianmeng opened this issue Sep 30, 2022 · 0 comments

Comments

@kianmeng
Copy link

$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/foobar/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.63.0 (4b91a6ea7 2022-08-08)
$ cargo test

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s


running 11 tests
test item ... ok
test no_of_iterations ... ok
test only_last ... ok
test summary ... FAILED
test until_changes ... ok
test until_error ... FAILED
test until_contains ... ok
test until_fail ... FAILED
test until_success ... FAILED
test until_same ... FAILED
test counter ... ok

failures:

---- summary stdout ----
thread 'summary' panicked at 'Unexpected stdout, failed diff original var
├── original: Total runs:	3
│   Successes:	2
│   Failures:	1 (-1)
├── diff:
│   --- 	orig
│   +++ 	var
│   @@ -3 +3 @@
│   -Failures:	1 (-1)
│   +Failures:	1 (1)
└── var as str: Total runs:	3
    Successes:	2
    Failures:	1 (1)

command=`"/home/foobar/src/contrib/Loop/target/debug/loop" "--for=true,false,true" "--summary" "--" "$ITEM"`
code=0
stdout=```"Total runs:\t3\nSuccesses:\t2\nFailures:\t1 (1)\n"```
stderr=```""```
', /home/foobar/.cargo/registry/src/github.com-1ecc6299db9ec823/assert_cmd-1.0.8/src/assert.rs:124:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- until_error stdout ----
thread 'until_error' panicked at 'Unexpected failure.
code-1
stderr=```"error: The argument \'--until-error <until_error>\' requires a value but none was supplied\n\nUSAGE:\n    loop --count-by <count_by> --every <every> --for <ffor> --offset <offset> --summary --until-error <until_error>\n\nFor more information try --help\n"```
command=`"/home/foobar/src/contrib/Loop/target/debug/loop" "--for=true,true,false,true,true,true" "--until-error" "--summary" "--" "$ITEM"`
code=1
stdout=```""```
stderr=```"error: The argument \'--until-error <until_error>\' requires a value but none was supplied\n\nUSAGE:\n    loop --count-by <count_by> --every <every> --for <ffor> --offset <offset> --summary --until-error <until_error>\n\nFor more information try --help\n"```
', /home/foobar/.cargo/registry/src/github.com-1ecc6299db9ec823/assert_cmd-1.0.8/src/assert.rs:124:9

---- until_fail stdout ----
thread 'until_fail' panicked at 'Unexpected stdout, failed diff original var
├── original: Total runs:	3
│   Successes:	2
│   Failures:	1 (-1)
├── diff:
│   --- 	orig
│   +++ 	var
│   @@ -3 +3 @@
│   -Failures:	1 (-1)
│   +Failures:	1 (1)
└── var as str: Total runs:	3
    Successes:	2
    Failures:	1 (1)

command=`"/home/foobar/src/contrib/Loop/target/debug/loop" "--for=true,true,false,true,true,true" "--until-fail" "--summary" "--" "$ITEM"`
code=0
stdout=```"Total runs:\t3\nSuccesses:\t2\nFailures:\t1 (1)\n"```
stderr=```""```
', /home/foobar/.cargo/registry/src/github.com-1ecc6299db9ec823/assert_cmd-1.0.8/src/assert.rs:124:9

---- until_success stdout ----
thread 'until_success' panicked at 'Unexpected stdout, failed diff original var
├── original: Total runs:	4
│   Successes:	1
│   Failures:	3 (-1, -1, -1)
├── diff:
│   --- 	orig
│   +++ 	var
│   @@ -3 +3 @@
│   -Failures:	3 (-1, -1, -1)
│   +Failures:	3 (1, 1, 1)
└── var as str: Total runs:	4
    Successes:	1
    Failures:	3 (1, 1, 1)

command=`"/home/foobar/src/contrib/Loop/target/debug/loop" "--for=false,false,false,true,false,false" "--until-success" "--summary" "--" "$ITEM"`
code=0
stdout=```"Total runs:\t4\nSuccesses:\t1\nFailures:\t3 (1, 1, 1)\n"```
stderr=```""```
', /home/foobar/.cargo/registry/src/github.com-1ecc6299db9ec823/assert_cmd-1.0.8/src/assert.rs:124:9

---- until_same stdout ----
thread 'until_same' panicked at 'Unexpected stdout, failed diff original var
├── original: 5
├── diff:
│   --- 	orig
│   +++ 	var
│   @@ -1 +1 @@
│   -5
│   +7
└── var as str: 7

command=`"/home/foobar/src/contrib/Loop/target/debug/loop" "--for=1,2,3,4,5,5,6,7" "--until-same" "--only-last" "--" "echo $ITEM"`
code=0
stdout=```"7\n"```
stderr=```""```
', /home/foobar/.cargo/registry/src/github.com-1ecc6299db9ec823/assert_cmd-1.0.8/src/assert.rs:124:9


failures:
    summary
    until_error
    until_fail
    until_same
    until_success

test result: FAILED. 6 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant