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

[bug] failed test when cargo test -- --test-threads=1 execute #1170

Open
hitenkoku opened this issue Aug 31, 2023 · 3 comments
Open

[bug] failed test when cargo test -- --test-threads=1 execute #1170

hitenkoku opened this issue Aug 31, 2023 · 3 comments
Assignees
Labels
under-investigation under investigation to develop

Comments

@hitenkoku
Copy link
Collaborator

Describe the bug
failed test when cargo test -- --test-threads=1 execute

successed test when RUST_TEST_THREADS=1 cargo test exevute

@hitenkoku hitenkoku added the under-investigation under investigation to develop label Aug 31, 2023
@hitenkoku
Copy link
Collaborator Author

> cargo test -- -test-threads=1
...
failures:
    tests::test_exec_general_html_output
    tests::test_exec_none_storedstatic
    tests::test_overwrite_csv
    tests::test_overwrite_json
    tests::test_same_file_output_computer_metrics_csv
    tests::test_same_file_output_computer_metrics_exit
    tests::test_same_file_output_csv_exit
    tests::test_same_file_output_json_exit
    tests::test_same_file_output_logon_summary_csv
    tests::test_same_file_output_logon_summary_csv_exit
    tests::test_same_file_output_metric_csv
    tests::test_same_file_output_metric_csv_exit

---- tests::test_exec_general_html_output stdout ----
thread 'tests::test_exec_general_html_output' panicked at 'Command csv-timeline: Argument or group 'exclude-category' specified in 'conflicts_with*' for 'include_category' does not exist', 
...

@hitenkoku hitenkoku self-assigned this Aug 31, 2023
@hitenkoku
Copy link
Collaborator Author

The error was due to the fact that the variable specified in conflict_with was not yet defined.

When the error was corrected, -test-threads was recognised as a hayabusa option when executed, resulting in an error.

I think that cargo test -- -test-threads=1 can also be supported if -test-threads is registered as a debugging option as a way

@YamatoSecurity
Copy link
Collaborator

I see, thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
under-investigation under investigation to develop
Projects
None yet
Development

No branches or pull requests

2 participants