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

Tests are not running #51

Open
alexxbb opened this issue Mar 4, 2024 · 3 comments
Open

Tests are not running #51

alexxbb opened this issue Mar 4, 2024 · 3 comments

Comments

@alexxbb
Copy link

alexxbb commented Mar 4, 2024

If I run a regular cargo test command I see all my tests running for a few minutes, however, if I run cargo pretty-test, all I get is this message immediately:

Generated by cargo-pretty-test

Status: OK; total 0 tests in 0.00s: 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

Moreover, if I pass a test name as a filter it works:

cargo pretty-test -- geometry
Generated by cargo-pretty-test
└── (OK) hapi_rs ... (20 tests in 10.32s: ✅ 20)
    └── (OK) tests\geometry.rs ... (20 tests in 10.32s: ✅ 20)
        ├─ ✅ geometry_add_and_delete_group
        ├─ ✅ geometry_attribute_names
        ├─ ✅ geometry_attribute_storage_type
        ├─ ✅ geometry_basic_instancing
        ├─ ✅ geometry_commit_and_revert
        ├─ ✅ geometry_create_and_set_array_attributes
        ├─ ✅ geometry_create_input_curve
        ├─ ✅ geometry_create_string_attrib
        ├─ ✅ geometry_delete_attribute
        ├─ ✅ geometry_elements
        ├─ ✅ geometry_get_face_materials
        ├─ ✅ geometry_multiple_input_curves
        ├─ ✅ geometry_numeric_attributes
        ├─ ✅ geometry_partitions
        ├─ ✅ geometry_read_array_attributes
        ├─ ✅ geometry_read_write_volume
        ├─ ✅ geometry_save_and_load_to_file
        ├─ ✅ geometry_save_and_load_to_memory
        ├─ ✅ geometry_string_array_attribute
        └─ ✅ geometry_wrong_attribute

Status: OK; total 20 tests in 10.32s: 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
@josecelano
Copy link
Owner

Hi @alexxbb thank you for opening the issue. Could you paste the whole cargo test output? There must be something not parsed correctly in some tests.

@alexxbb
Copy link
Author

alexxbb commented Mar 4, 2024

Sure, here's the output of cargo test

>> cargo test
   Compiling hapi-rs v0.10.0 (C:\Github\hapi-rs)
warning: function `get_attribute_dictionary_data` is never used
   --> src\attribute\bindings.rs:244:11
    |
244 | _rust_fn [get_attribute_dictionary_data]
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: `hapi-rs` (lib) generated 1 warning
warning: `hapi-rs` (lib test) generated 1 warning (1 duplicate)
    Finished test [unoptimized + debuginfo] target(s) in 2.99s
     Running unittests src\lib.rs (target\debug\deps\hapi_rs-1774e91f9266e99d.exe)

running 4 tests
test attribute::array::tests::data_array_iter ... ok
test attribute::array::tests::data_array_mutate ... ok
test stringhandle::tests::get_string_api ... ok
test stringhandle::tests::string_array_api ... ok

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

     Running tests\asset.rs (target\debug\deps\asset-575f38f8ff792bfe.exe)

running 7 tests
test asset_load_from_memory ... ok
test asset_get_names ... ok
test asset_create_node ... ok
test asset_get_count ... ok
test asset_get_first_name ... ok
test asset_menu_parameters ... ok
test asset_default_parameters ... ok

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

     Running tests\geometry.rs (target\debug\deps\geometry-51034567e1dddcad.exe)

running 20 tests
test geometry_attribute_names ... ok
test geometry_commit_and_revert ... ok
test geometry_delete_attribute ... ok
test geometry_attribute_storage_type ... ok
test geometry_read_write_volume ... ok
test geometry_string_array_attribute ... ok
test geometry_create_string_attrib ... ok
test geometry_elements ... ok
test geometry_get_face_materials ... ok
test geometry_wrong_attribute ... ok
test geometry_create_and_set_array_attributes ... ok
test geometry_numeric_attributes ... ok
test geometry_save_and_load_to_memory ... ok
test geometry_add_and_delete_group ... ok
test geometry_multiple_input_curves ... ok
test geometry_create_input_curve ... ok
test geometry_save_and_load_to_file ... ok
test geometry_partitions ... ok
test geometry_basic_instancing ... ok
test geometry_read_array_attributes ... ok

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

     Running tests\material.rs (target\debug\deps\material-7d4dc455fdde4875.exe)

   Doc-tests hapi-rs

running 5 tests
test src\lib.rs - (line 53) ... ignored
test src\lib.rs - (line 77) ... ignored
test src\asset.rs - asset::AssetLibrary::try_create_first (line 248) ... ok
test src\parameter\mod.rs - parameter (line 6) ... ok
test src\attribute\mod.rs - attribute (line 6) ... ok

The output of cargo pretty-test

cargo pretty-test
Generated by cargo-pretty-test

Status: OK; total 0 tests in 0.00s: 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

Env:

>> rustc --version
rustc 1.75.0 (82e1608df 2023-12-21)

cargo-pretty was installed (today) via cargo install cargo-pretty-test

Hope this helps.

@Bowarc
Copy link

Bowarc commented Oct 23, 2024

I have the same issue on rustc 1.81.0

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