zellij/src/tests
Yutaka Kamei 168deabea7
Load config before start()
Previously, a config file was loaded within `start()`, and if the config
file is invalid, Zellij was supposed to show a user what's wrong with
it. However, since `start()` starts setting up its terminal with an
alternative screen buffer, neither standard output nor standard error
could display such an error.

This change intends to address this issue by making Zellij load a config
file before `start()`.

In addition, the patch also includes some refactorings:

* Redefine `from_cli_config` with `TryFrom`, which was introduced in
  Rust 1.34
* Remove conditional declaration `cfg(not(test))` because `start()` now
  receive a `Config` as the third argument
* Introduce [`tempfile`](https://crates.io/crates/tempfile) in order to
  run tests with actual files
* Typo?: "Deserialisation" -> "Deserialization"
2021-05-02 06:18:40 +09:00
..
fixtures Terminal: pass vttest 1 (#408) 2021-04-29 15:25:08 +02:00
integration Load config before start() 2021-05-02 06:18:40 +09:00
fakes.rs * fix(ui): react to terminal window size changes (SIGWINCH) (#245) 2021-04-01 17:38:13 +02:00
mod.rs Well, it turns out that I spent 4 hours on something impossible... 2021-02-09 22:19:34 +00:00
possible_tty_inputs.rs * fix(ui): react to terminal window size changes (SIGWINCH) (#245) 2021-04-01 17:38:13 +02:00
tty_inputs.rs * fix(ui): react to terminal window size changes (SIGWINCH) (#245) 2021-04-01 17:38:13 +02:00
utils.rs add tests 2021-04-21 15:30:02 +09:00