Eric Huss
5a84d641cd
Migrate pass/fail mdbook test to BookTest
2025-04-22 21:11:53 -07:00
Eric Huss
3e1d750efa
Migrate no_git_config_with_title to BookTest
2025-04-22 20:50:20 -07:00
Eric Huss
41bfbc69e6
Migrate base_mdbook_init_can_skip_confirmation_prompts to BookTest
2025-04-22 20:50:20 -07:00
Eric Huss
dd778d50f9
Add some basic help tests
2025-04-22 20:50:20 -07:00
Gabor Szabo
7247e5f9a1
test the command line without any parameters #1568
2025-03-31 11:39:38 +03:00
eureka-cpu
8f024dabc3
fix init --title option failure when git user is not configured
2024-11-18 11:10:11 -08:00
Eric Huss
0c580c32c4
Add regression test for mdbook init title with no git config
...
Regression test for https://github.com/rust-lang/mdBook/issues/2485
2024-11-18 11:08:26 -08:00
Sean Poulter
b9c6b326b7
style(tests): Fixed issues reported by clippy
2023-04-03 08:36:57 -04:00
Sean Poulter
bffdb0b03d
fix(cli): init --force skips confirmation prompts
2023-04-03 03:05:24 -04:00
Chris Lovett
74eb4059d6
add a --chapter option to mdbook test. ( #1741 )
...
Sometimes when working on large books it is handy to be able to run mdbook on a single chapter of a book.
2022-08-25 19:13:51 -07:00
Sergei Trofimovich
2a2b51c8ab
tests/cli: ignore user's RUST_LOG= environment variable in tests
...
nixpkgs build system sets `RUST_LOG=` (empty value) by default.
This switches `mdBook` into warnings+ mode (instead of info+).
This causes the following tests to fail:
$ RUST_LOG= cargo test --test cli_tests
...
cli::test::mdbook_cli_can_correctly_test_a_passing_book
cli::test::mdbook_cli_detects_book_with_failing_tests
cli::build::mdbook_cli_dummy_book_generates_index_html
The change drops RUST_LOG= entry.
2022-04-01 08:15:18 +01:00
Michael Howell
9bede85efa
Move cli tests to their own subdir
2021-09-26 11:29:36 -07:00