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

Test inference warning #231

Closed
messense opened this issue Nov 1, 2018 · 2 comments
Closed

Test inference warning #231

messense opened this issue Nov 1, 2018 · 2 comments

Comments

@messense
Copy link

messense commented Nov 1, 2018

warning: An explicit [[test]] section is specified in Cargo.toml which currently
disables Cargo from automatically inferring other test targets.
This inference behavior will change in the Rust 2018 edition and the following
files will be included as a test target:

  • /home/travis/build/pingcap/rust-rocksdb/tests/test_rate_limiter.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_delete_files_in_range.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_delete_range.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_compact_range.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_prefix_extractor.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_ingest_external_file.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_event_listener.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_slice_transform.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_ttl.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_iterator.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_column_family.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_rocksdb_options.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_multithreaded.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_read_only.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_statistics.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_table_properties.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_metadata.rs
  • /home/travis/build/pingcap/rust-rocksdb/tests/test_compaction_filter.rs

This is likely to break cargo build or cargo test as these files may not be
ready to be compiled as a test target today. You can future-proof yourself
and disable this warning by adding autotests = false to your [package]
section. You may also move the files to a location where Cargo would not
automatically infer them to be a target, such as in subfolders.
For more information on this warning you can consult
rust-lang/cargo#5330

@DorianZheng
Copy link

@messense Thank you for the issue, Are you interesting in file a PR to fix this

@huachaohuang
Copy link

Fixed in #243

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

3 participants