-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cargo not running integration tests on cargo test
if version number is big, i.e. 5123.0.0
#13895
Labels
C-bug
Category: bug
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Comments
simple0x47
added
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
labels
May 9, 2024
I cannot reproduce with the following commands: cargo new foo --lib
cd foo
echo "[package]" > Cargo.toml
echo "name = 'foo'" >> Cargo.toml
echo "version = '5123.0.0'" >> Cargo.toml
mkdir -p tests
touch tests/bar.rs
cargo +stable t And got this output: Creating library `foo` package
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Compiling foo v5123.0.0 (/home/user/repos/foo)
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s
Running unittests src/lib.rs (target/debug/deps/foo-f82fbcf55ac84707)
running 1 test
test tests::it_works ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/bar.rs (target/debug/deps/bar-70708f1a8f83e042)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests foo
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Would you mind sharing a minimal reproducible example of it, and also the console output you've got from Cargo that had this issue? |
weihanglo
added
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
and removed
S-triage
Status: This issue is waiting on initial triage.
labels
May 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: bug
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
I was surprised to find out that the integration tests located within the
tests
sub-folder were not being executed when the version was as big as specified in the title, but when a 'normal' value was used, everything ran as expected.Steps
tests
.5123.0.0
.cargo test
.tests
do not get executed.Possible Solution(s)
No response
Notes
It looks like a boundary issues, so the mistake may be on my part for exceeding an existing limit within Cargo's code.
Version
The text was updated successfully, but these errors were encountered: