Skip to content

Tests are not correctly feature-gated #647

Description

@tyilo

Running cargo test on the main branch (478e46b) results in the following test failures:

$ cargo test
...
failures:
    src/binary/vector.rs - binary::vector::Vector (line 24)
    src/datetime.rs - datetime::DateTime (line 56)
    src/datetime.rs - datetime::DateTime (line 83)
    src/lib.rs - (line 183)
    src/lib.rs - (line 234)
    src/lib.rs - (line 263)
    src/lib.rs - (line 318)
    src/lib.rs - (line 340)
    src/lib.rs - (line 361)
    src/oid.rs - oid::ObjectId (line 41)
    src/oid.rs - oid::ObjectId (line 72)
    src/raw/array.rs - raw::array::RawArray (line 34)

test result: FAILED. 65 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.93s

error: doctest failed, to rerun pass `--doc`

Running cargo test --all-features succeeds:

$ cargo test --all-features
...
test result: ok. 104 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.44s

This must mean that the tests are not properly feature-gated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions