mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-10 13:10:40 +00:00
Use colors inside the test
This commit is contained in:
parent
d322bcfcec
commit
30636e7cf3
@ -69,7 +69,17 @@ impl Exercise {
|
|||||||
pub fn run(&self) -> Result<Output> {
|
pub fn run(&self) -> Result<Output> {
|
||||||
match self.mode {
|
match self.mode {
|
||||||
Mode::Run => self.cargo_cmd("run", &[]),
|
Mode::Run => self.cargo_cmd("run", &[]),
|
||||||
Mode::Test => self.cargo_cmd("test", &["--", "--nocapture", "--format", "pretty"]),
|
Mode::Test => self.cargo_cmd(
|
||||||
|
"test",
|
||||||
|
&[
|
||||||
|
"--",
|
||||||
|
"--color",
|
||||||
|
"always",
|
||||||
|
"--nocapture",
|
||||||
|
"--format",
|
||||||
|
"pretty",
|
||||||
|
],
|
||||||
|
),
|
||||||
Mode::Clippy => self.cargo_cmd(
|
Mode::Clippy => self.cargo_cmd(
|
||||||
"clippy",
|
"clippy",
|
||||||
&["--", "-D", "warnings", "-D", "clippy::float_cmp"],
|
&["--", "-D", "warnings", "-D", "clippy::float_cmp"],
|
||||||
|
Loading…
Reference in New Issue
Block a user