Respect the target-dir config and show tests' output

This commit is contained in:
mo8it
2024-04-27 04:14:59 +02:00
parent dc5c72bc19
commit c82c367324
8 changed files with 176 additions and 158 deletions
+4 -1
View File
@@ -50,7 +50,10 @@ impl<'a> WatchState<'a> {
pub fn run_current_exercise(&mut self) -> Result<()> {
self.show_hint = false;
let success = self.app_state.current_exercise().run(&mut self.output)?;
let success = self
.app_state
.current_exercise()
.run(&mut self.output, self.app_state.target_dir())?;
if success {
self.done_status =
if let Some(solution_path) = self.app_state.current_solution_path()? {