I am unable to successfully test the repo locally. It would be useful to include instructions on how to test the repo including (toolchain, command, other dependencies).
Here are some questions:
- are we supposed to use stable to test? (maybe add a rust-toolchain file)
- how do we invoke all the tests (I am using cargo test --all). but this could be different if someone is adding benchmarking tests
- are there additional deps needed to test the repo?
my toolchain
rustup show active-toolchain
beta-x86_64-apple-darwin
Here is the error I am getting on both master
and next
branches:
cmd: RUST_BACKTRACE=1 cargo test --all
...
Running target/debug/deps/rendering-85d74b747276a92b
running 17 tests
test shortcode::tests::lex_inline_ignored_shortcode ... ok
test shortcode::tests::can_parse_shortcode_arguments ... ok
test shortcode::tests::lex_ignored_shortcode_with_body ... ok
test shortcode::tests::lex_inline_shortcode ... ok
test shortcode::tests::lex_text ... ok
test shortcode::tests::lex_shortcode_with_body ... ok
test shortcode::tests::lex_page ... ok
test table_of_contents::tests::can_make_basic_toc ... ok
test table_of_contents::tests::can_make_messy_toc ... ok
test table_of_contents::tests::can_make_more_complex_toc ... ok
test shortcode::tests::can_unignore_inline_shortcode ... ok
test shortcode::tests::does_nothing_with_no_shortcodes ... ok
test shortcode::tests::unignore_shortcode_with_body_does_not_swallow_initial_whitespace ... ok
test shortcode::tests::can_unignore_shortcode_with_body ... ok
test shortcode::tests::can_render_shortcodes_with_body ... ok
test shortcode::tests::can_render_inline_shortcodes ... ok
test shortcode::tests::shortcodes_with_body_do_not_eat_newlines ... ok
test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
Running target/debug/deps/markdown-ade83266ef369348
running 41 tests
test can_add_id_to_headers_same_slug ... ok
test can_handle_summaries ... ok
test can_do_render_content_simple ... ok
test can_add_id_to_headers ... ok
test can_insert_anchor_left ... ok
test can_insert_anchor_with_link ... ok
test can_insert_anchor_right ... ok
test can_insert_anchor_with_exclamation_mark ... ok
test can_ignore_tags_in_toc ... ok
test can_make_permalinks_with_colocated_assets_for_image ... ok
test can_insert_anchor_with_other_special_chars ... ok
test can_make_permalinks_with_colocated_assets_for_link ... ok
test can_make_relative_links_with_anchors ... ok
test can_make_toc ... ok
test can_make_valid_relative_link ... ok
test can_make_valid_relative_link_in_header ... ok
test can_render_body_shortcode_and_paragraph_after ... ok
test can_render_shortcode ... ok
test can_render_shortcode_with_body ... ok
test can_render_body_shortcode_with_markdown_char_in_name ... ok
test can_render_several_shortcode_in_row ... ok
test can_render_shortcode_with_markdown_char_in_args_name ... ok
test can_understand_backtick_in_paragraphs ... ok
test can_render_two_body_shortcode_and_paragraph_after_with_line_break_between ... ok
test can_understand_backtick_in_titles ... ok
test can_render_shortcode_with_markdown_char_in_args_value ... ok
test can_understand_link_with_title_in_header ... ok
test can_understand_links_in_header ... ok
test doesnt_highlight_code_block_with_highlighting_off ... ok
test doesnt_render_ignored_shortcodes ... ok
test doesnt_try_to_validate_email_links_angled_brackets ... ok
test doesnt_try_to_validate_email_links_mailto ... ok
test errors_relative_link_inexistant ... ok
test markdown_doesnt_wrap_html_in_paragraph ... ok
test errors_rendering_unknown_shortcode ... ok
test doesnt_try_to_highlight_content_from_shortcode ... ok
test can_validate_valid_external_links ... ok
test can_highlight_code_block_no_lang ... ok
test can_higlight_code_block_with_unknown_lang ... ok
test can_highlight_code_block_with_lang ... ok
test can_show_error_message_for_invalid_external_links ... FAILED
failures:
---- can_show_error_message_for_invalid_external_links stdout ----
thread 'can_show_error_message_for_invalid_external_links' panicked at 'assertion failed: res.is_err()', components/rendering/tests/markdown.rs:634:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::_print
at src/libstd/sys_common/backtrace.rs:71
2: std::panicking::default_hook::{{closure}}
at src/libstd/sys_common/backtrace.rs:59
at src/libstd/panicking.rs:211
3: std::panicking::default_hook
at src/libstd/panicking.rs:221
4: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get
at src/libstd/panicking.rs:491
5: core::ptr::real_drop_in_place
at /rustc/eb53c1039300a8bc8f8e4b29659ddc80b1e81b68/src/libstd/panicking.rs:425
6: markdown::can_show_error_message_for_invalid_external_links
at components/rendering/tests/markdown.rs:634
7: markdown::can_show_error_message_for_invalid_external_links::{{closure}}
at components/rendering/tests/markdown.rs:622
8: core::ops::function::FnOnce::call_once
at /rustc/eb53c1039300a8bc8f8e4b29659ddc80b1e81b68/src/libcore/ops/function.rs:238
9: <F as alloc::boxed::FnBox<A>>::call_box
at src/libtest/lib.rs:1471
at /rustc/eb53c1039300a8bc8f8e4b29659ddc80b1e81b68/src/libcore/ops/function.rs:238
at /rustc/eb53c1039300a8bc8f8e4b29659ddc80b1e81b68/src/liballoc/boxed.rs:673
10: panic_unwind::dwarf::eh::read_encoded_pointer
at src/libpanic_unwind/lib.rs:102
failures:
can_show_error_message_for_invalid_external_links
test result: FAILED. 40 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out