From 5449c9b85f51daaf7c79b0e646521e5584600a32 Mon Sep 17 00:00:00 2001 From: Tim Chambers Date: Tue, 26 Nov 2024 15:26:08 -0800 Subject: [PATCH] handle dry run --- lib/ex_unit_jumpstart/create_files.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ex_unit_jumpstart/create_files.ex b/lib/ex_unit_jumpstart/create_files.ex index 3c90e60..d6df492 100644 --- a/lib/ex_unit_jumpstart/create_files.ex +++ b/lib/ex_unit_jumpstart/create_files.ex @@ -12,7 +12,7 @@ defmodule ExUnitJumpstart.CreateFiles do String.replace(test_file.path, "_test.exs", ".ex") == code_file.path end) - unless test_file do + unless test_file or config.dry_run do IO.puts("Creating test file for #{code_file.path}") create_test_file(config, code_file) end